Skip to content

disable clippy transmute warning #359

disable clippy transmute warning

disable clippy transmute warning #359

Triggered via push November 27, 2025 05:54
Status Success
Total duration 13s
Artifacts

rustfmt.yml

on: push
Rustfmt
9s
Rustfmt
Fit to window
Zoom out
Zoom in

Annotations

13 warnings
Rustfmt
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/
Rustfmt
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/
Rustfmt
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/
Rustfmt
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/
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
lint `clippy::transmute_num_to_bytes` has been renamed to `unnecessary_transmutes`: src/rng.rs#L172
warning: lint `clippy::transmute_num_to_bytes` has been renamed to `unnecessary_transmutes` --> src/rng.rs:172:57 | 172 | #[allow(unnecessary_transmutes, clippy::transmute_num_to_bytes)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `unnecessary_transmutes` ... 185 | rng_core!(usize, u32, u16, u8); | ------------------------------ in this macro invocation | = note: `#[warn(renamed_and_removed_lints)]` on by default = note: this warning originates in the macro `rng_core` (in Nightly builds, run with -Z macro-backtrace for more info)
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
lint `clippy::transmute_num_to_bytes` has been renamed to `unnecessary_transmutes`: src/rng.rs#L172
warning: lint `clippy::transmute_num_to_bytes` has been renamed to `unnecessary_transmutes` --> src/rng.rs:172:57 | 172 | #[allow(unnecessary_transmutes, clippy::transmute_num_to_bytes)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `unnecessary_transmutes` ... 185 | rng_core!(usize, u32, u16, u8); | ------------------------------ in this macro invocation | = note: `#[warn(renamed_and_removed_lints)]` on by default = note: this warning originates in the macro `rng_core` (in Nightly builds, run with -Z macro-backtrace for more info)
casting to the same type is unnecessary (`u8` -> `u8`): src/spi.rs#L326
warning: casting to the same type is unnecessary (`u8` -> `u8`) --> src/spi.rs:326:23 | 326 | return Ok(self.spi.dr8().read().bits() as u8); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.spi.dr8().read().bits()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default