Skip to content

Block at end of LPI2C embedded-hal transactions #637

Block at end of LPI2C embedded-hal transactions

Block at end of LPI2C embedded-hal transactions #637

GitHub Actions / clippy succeeded Jun 14, 2024 in 0s

clippy

1 warning

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 1
Note 0
Help 0

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check warning on line 62 in examples/rtic_spi.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_some()`

warning: redundant pattern matching, consider using `is_some()`
  --> examples/rtic_spi.rs:62:23
   |
62 |             while let Some(_) = spi.read_data() {}
   |             ----------^^^^^^^------------------ help: try: `while spi.read_data().is_some()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
   = note: `#[warn(clippy::redundant_pattern_matching)]` on by default