mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Also clippy check examples
This commit is contained in:
parent
ffa97842e2
commit
4970075974
4
.github/workflows/clippy.yml
vendored
4
.github/workflows/clippy.yml
vendored
|
@ -7,6 +7,8 @@ jobs:
|
||||||
RUSTFLAGS: "-D warnings"
|
RUSTFLAGS: "-D warnings"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- run: sudo apt-get update
|
||||||
|
- run: sudo apt-get install gcc-arm-none-eabi
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
@ -17,4 +19,4 @@ jobs:
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
args: -- -Dwarnings
|
args: --workspace --examples -- -Dwarnings
|
||||||
|
|
|
@ -44,5 +44,6 @@ fn main() -> ! {
|
||||||
|
|
||||||
i2c.write(0x2c, &[1, 2, 3]).unwrap();
|
i2c.write(0x2c, &[1, 2, 3]).unwrap();
|
||||||
|
|
||||||
|
#[allow(clippy::empty_loop)]
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,5 +48,6 @@ fn main() -> ! {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
lcd.write_str("HD44780!", &mut delay_provider).unwrap();
|
lcd.write_str("HD44780!", &mut delay_provider).unwrap();
|
||||||
|
|
||||||
|
#[allow(clippy::empty_loop)]
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue