GitHub Actions / clippy
succeeded
Jan 29, 2024 in 0s
clippy
3 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 3 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0 (82e1608df 2023-12-21)
- cargo 1.75.0 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (82e1608 2023-12-21)
Annotations
Check warning on line 36 in examples/adc.rs
github-actions / clippy
the method `read_channel` doesn't need a mutable reference
warning: the method `read_channel` doesn't need a mutable reference
--> examples/adc.rs:36:42
|
36 | let data: u16 = adc.read_channel(&mut ch0);
| ^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_mut_passed
= note: `#[warn(clippy::unnecessary_mut_passed)]` on by default
Check warning on line 247 in src/time.rs
github-actions / clippy
call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
warning: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
--> src/time.rs:247:9
|
247 | drop(dwt);
| ^^^^^^^^^
|
note: argument has type `gd32f1::gd32f130::DWT`
--> src/time.rs:247:14
|
247 | drop(dwt);
| ^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_non_drop
= note: `#[warn(clippy::drop_non_drop)]` on by default
Check warning on line 662 in src/i2c.rs
github-actions / clippy
this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `slice`
warning: this `.into_iter()` call is equivalent to `.iter_mut()` and will not consume the `slice`
--> src/i2c.rs:662:42
|
662 | for (i, operation) in operations.into_iter().enumerate() {
| ^^^^^^^^^ help: call directly: `iter_mut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `#[warn(clippy::into_iter_on_ref)]` on by default
Loading