mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 12:41: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"
|
||||
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
|
||||
|
|
|
@ -44,5 +44,6 @@ fn main() -> ! {
|
|||
|
||||
i2c.write(0x2c, &[1, 2, 3]).unwrap();
|
||||
|
||||
#[allow(clippy::empty_loop)]
|
||||
loop {}
|
||||
}
|
||||
|
|
|
@ -48,5 +48,6 @@ fn main() -> ! {
|
|||
.unwrap();
|
||||
lcd.write_str("HD44780!", &mut delay_provider).unwrap();
|
||||
|
||||
#[allow(clippy::empty_loop)]
|
||||
loop {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue