Skip to content

Merge pull request #41 from gd32-rust/cs #150

Merge pull request #41 from gd32-rust/cs

Merge pull request #41 from gd32-rust/cs #150

GitHub Actions / clippy succeeded Jan 29, 2024 in 1s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
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 247 in src/time.rs

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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