You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
145: fix new clippy lints r=therealprof a=newAM
This resolves these 6 clippy failures:
```text
warning: name `HSI` contains a capitalized acronym
--> src/rcc.rs:93:9
|
93 | HSI,
| ^^^ help: consider making the acronym lowercase, except the initial letter (notice the capitalization): `Hsi`
|
= note: `#[warn(clippy::upper_case_acronyms)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
warning: name `HSE` contains a capitalized acronym
--> src/rcc.rs:95:9
|
95 | HSE(u32, super::HSEBypassMode),
| ^^^ help: consider making the acronym lowercase, except the initial letter: `Hse`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/time.rs:47:1
|
47 | impl Into<Hertz> for KiloHertz {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(clippy::from_over_into)]` on by default
= help: consider to implement `From<time::KiloHertz>` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/time.rs:53:1
|
53 | impl Into<Hertz> for MegaHertz {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider to implement `From<time::MegaHertz>` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/time.rs:59:1
|
59 | impl Into<KiloHertz> for MegaHertz {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider to implement `From<time::MegaHertz>` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> src/watchdog.rs:69:1
|
69 | impl Into<IwdgTimeout> for Hertz {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider to implement `From<time::Hertz>` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
warning: `stm32f0xx-hal` (lib) generated 6 warnings
```
Co-authored-by: Alex Martens <[email protected]>
0 commit comments