Skip to content

fix spi

fix spi #347

Triggered via push January 13, 2025 10:09
Status Success
Total duration 23s
Artifacts

rustfmt.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
Rustfmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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/master/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/master/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/master/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/master/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/master/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/master/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/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default