Skip to content

Eagerly address select Rust 2024 edition changes #590

Eagerly address select Rust 2024 edition changes

Eagerly address select Rust 2024 edition changes #590

GitHub Actions / clippy succeeded Apr 15, 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.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

Annotations

Check warning on line 64 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:64:23
   |
64 |             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