clippy #20
Annotations
22 warnings
casting to the same type is unnecessary (`u8` -> `u8`):
src/rtc.rs#L394
warning: casting to the same type is unnecessary (`u8` -> `u8`)
--> src/rtc.rs:394:19
|
394 | let bcd_low = ((bcd_high << 4) | value) as u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((bcd_high << 4) | value)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L199
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:199:36
|
199 | let (st, su) = bcd2_encode(alarm.seconds.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.seconds.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u8` -> `u8`):
src/rtc.rs#L394
warning: casting to the same type is unnecessary (`u8` -> `u8`)
--> src/rtc.rs:394:19
|
394 | let bcd_low = ((bcd_high << 4) | value) as u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((bcd_high << 4) | value)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L198
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:198:36
|
198 | let (mt, mu) = bcd2_encode(alarm.minutes.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.minutes.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L199
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:199:36
|
199 | let (st, su) = bcd2_encode(alarm.seconds.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.seconds.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L197
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:197:36
|
197 | let (ht, hu) = bcd2_encode(alarm.hours.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.hours.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L198
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:198:36
|
198 | let (mt, mu) = bcd2_encode(alarm.minutes.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.minutes.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L196
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:196:36
|
196 | let (dt, du) = bcd2_encode(alarm.day.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.day.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L197
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:197:36
|
197 | let (ht, hu) = bcd2_encode(alarm.hours.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.hours.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/analog/adc.rs#L256
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/analog/adc.rs:256:27
|
256 | let adc_mv = (vref as u32 * raw) >> 16;
| ^^^^^^^^^^^ help: try: `vref`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/rtc.rs#L196
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/rtc.rs:196:36
|
196 | let (dt, du) = bcd2_encode(alarm.day.unwrap_or_default() as u32);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `alarm.day.unwrap_or_default()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting to the same type is unnecessary (`u32` -> `u32`):
src/analog/adc.rs#L256
warning: casting to the same type is unnecessary (`u32` -> `u32`)
--> src/analog/adc.rs:256:27
|
256 | let adc_mv = (vref as u32 * raw) >> 16;
| ^^^^^^^^^^^ help: try: `vref`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
clippy_check (stable, stm32c031)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy_check (stable, stm32c031)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c031)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c031)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c031)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c011)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy_check (stable, stm32c011)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c011)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c011)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check (stable, stm32c011)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|