embedded-hal 1.0 rc3 updates (#50) #101
clippy
14 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 14 |
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 81 in src/spi.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/spi.rs:81:1
|
81 | pub unsafe trait Pins<SPI> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 78 in src/spi.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/spi.rs:78:1
|
78 | pub unsafe trait SclkPin<SPI> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 75 in src/spi.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/spi.rs:75:1
|
75 | pub unsafe trait SsPin<SPI> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 72 in src/spi.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/spi.rs:72:1
|
72 | pub unsafe trait MosiPin<SPI> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 69 in src/spi.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/spi.rs:69:1
|
69 | pub unsafe trait MisoPin<SPI> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 389 in src/serial.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/serial.rs:389:1
|
389 | pub unsafe trait Pins<UART> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 358 in src/serial.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/serial.rs:358:1
|
358 | pub unsafe trait CtsPin<UART> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 356 in src/serial.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/serial.rs:356:1
|
356 | pub unsafe trait RtsPin<UART> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 354 in src/serial.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/serial.rs:354:1
|
354 | pub unsafe trait RxPin<UART> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 352 in src/serial.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/serial.rs:352:1
|
352 | pub unsafe trait TxPin<UART> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 64 in src/i2c.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/i2c.rs:64:1
|
64 | pub unsafe trait Pins<I2C> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 61 in src/i2c.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/i2c.rs:61:1
|
61 | pub unsafe trait SclPin<I2C> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
Check warning on line 58 in src/i2c.rs
github-actions / clippy
docs for unsafe trait missing `# Safety` section
warning: docs for unsafe trait missing `# Safety` section
--> src/i2c.rs:58:1
|
58 | pub unsafe trait SdaPin<I2C> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc
= note: `#[warn(clippy::missing_safety_doc)]` on by default
Check warning on line 235 in src/watchdog.rs
github-actions / clippy
unneeded unit return type
warning: unneeded unit return type
--> src/watchdog.rs:235:23
|
235 | fn feed(&mut self) -> () {
| ^^^^^^ help: remove the `-> ()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `#[warn(clippy::unused_unit)]` on by default