mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Run clippy on examples and tests
This commit is contained in:
parent
fba087f2ee
commit
85c3287680
|
@ -6,5 +6,5 @@ build-std-features = ["compiler-builtins-mem"]
|
||||||
target = "thumbv4t-none-eabi"
|
target = "thumbv4t-none-eabi"
|
||||||
|
|
||||||
[target.thumbv4t-none-eabi]
|
[target.thumbv4t-none-eabi]
|
||||||
rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi", "-Dwarnings", "-Dclippy::all"]
|
rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi", "-Dwarnings", "-Dclippy::all", "-Aclippy::empty-loop"]
|
||||||
runner = "mgba-test-runner"
|
runner = "mgba-test-runner"
|
||||||
|
|
|
@ -24,7 +24,7 @@ fn main(mut gba: agb::Gba) -> ! {
|
||||||
let mut value = 0;
|
let mut value = 0;
|
||||||
|
|
||||||
for j in 0..4 {
|
for j in 0..4 {
|
||||||
value |= (value << 8) | (x + i) % 8 | ((y + j) % 8) << 4;
|
value |= (value << 8) | ((x + i) % 8) | ((y + j) % 8) << 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
*bit = value;
|
*bit = value;
|
||||||
|
|
2
justfile
2
justfile
|
@ -87,7 +87,7 @@ _test-debug crate:
|
||||||
just _build-debug {{crate}}
|
just _build-debug {{crate}}
|
||||||
(cd "{{crate}}" && cargo test)
|
(cd "{{crate}}" && cargo test)
|
||||||
_clippy crate:
|
_clippy crate:
|
||||||
{{ if crate =~ 'agb.*' { "cd " + crate + " && cargo clippy" } else { "" } }}
|
(cd "{{crate}}" && cargo clippy --examples --tests)
|
||||||
_clean crate:
|
_clean crate:
|
||||||
(cd "{{crate}}" && cargo clean)
|
(cd "{{crate}}" && cargo clean)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue