mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Merge pull request #217 from gwilymk/run-clippy-on-examples-and-tests
Run clippy on examples and tests
This commit is contained in:
commit
b78b888ce3
|
@ -6,5 +6,5 @@ build-std-features = ["compiler-builtins-mem"]
|
|||
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"
|
||||
|
|
|
@ -24,7 +24,7 @@ fn main(mut gba: agb::Gba) -> ! {
|
|||
let mut value = 0;
|
||||
|
||||
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;
|
||||
|
|
2
justfile
2
justfile
|
@ -87,7 +87,7 @@ _test-debug crate:
|
|||
just _build-debug {{crate}}
|
||||
(cd "{{crate}}" && cargo test)
|
||||
_clippy crate:
|
||||
{{ if crate =~ 'agb.*' { "cd " + crate + " && cargo clippy" } else { "" } }}
|
||||
(cd "{{crate}}" && cargo clippy --examples --tests)
|
||||
_clean crate:
|
||||
(cd "{{crate}}" && cargo clean)
|
||||
|
||||
|
|
Loading…
Reference in a new issue