-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix clippy issues The result of running `cargo clippy --fix --all-targets --all-features` twice. * Manually fix another clippy issue warning: unnecessary `if let` since only the `Ok` variant of the iterator element is used --> examples/monitor-shtc3.rs:43:9 | 43 | for key in io::stdin().keys() { | ^ ------------------ help: try: `io::stdin().keys().flatten()` | _________| | | 44 | | if let Ok(Key::Ctrl('c')) = key { 45 | | running.store(false, Ordering::SeqCst); 46 | | break; 47 | | } 48 | | } | |_________^ | help: ...and remove the `if let` statement in the for loop --> examples/monitor-shtc3.rs:44:13 | 44 | / if let Ok(Key::Ctrl('c')) = key { 45 | | running.store(false, Ordering::SeqCst); 46 | | break; 47 | | } | |_____________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten = note: `#[warn(clippy::manual_flatten)]` on by default
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters