Skip to content

Switch to stm32g0-staging #318

Switch to stm32g0-staging

Switch to stm32g0-staging #318

GitHub Actions / clippy succeeded Dec 16, 2024 in 1s

clippy

3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 3
Note 0
Help 0

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check warning on line 42 in src/analog/comparator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> src/analog/comparator.rs:42:9
   |
42 |         &unsafe { &*COMP::ptr() }.comp2_csr()
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `unsafe { &*COMP::ptr() }.comp2_csr()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow

Check warning on line 30 in src/analog/comparator.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression creates a reference which is immediately dereferenced by the compiler

warning: this expression creates a reference which is immediately dereferenced by the compiler
  --> src/analog/comparator.rs:30:9
   |
30 |         &unsafe { &*COMP::ptr() }.comp1_csr()
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `unsafe { &*COMP::ptr() }.comp1_csr()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 315 in src/analog/adc.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `u16`

warning: useless conversion to the same type: `u16`
   --> src/analog/adc.rs:315:12
    |
315 |         Ok(val.into())
    |            ^^^^^^^^^^ help: consider removing `.into()`: `val`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
    = note: `#[warn(clippy::useless_conversion)]` on by default