Also clippy check examples

This commit is contained in:
Hmvp 2021-07-26 11:48:11 +02:00 committed by 9names
parent ffa97842e2
commit 4970075974
3 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,8 @@ jobs:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update
- run: sudo apt-get install gcc-arm-none-eabi
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
@ -17,4 +19,4 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -Dwarnings
args: --workspace --examples -- -Dwarnings

View file

@ -44,5 +44,6 @@ fn main() -> ! {
i2c.write(0x2c, &[1, 2, 3]).unwrap();
#[allow(clippy::empty_loop)]
loop {}
}

View file

@ -48,5 +48,6 @@ fn main() -> ! {
.unwrap();
lcd.write_str("HD44780!", &mut delay_provider).unwrap();
#[allow(clippy::empty_loop)]
loop {}
}