GitHub Actions / clippy
succeeded
Aug 24, 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.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8d 2024-08-06)
Annotations
Check warning on line 136 in src/cmds/pick.rs
github-actions / clippy
this pattern reimplements `Option::unwrap_or`
warning: this pattern reimplements `Option::unwrap_or`
--> src/cmds/pick.rs:133:21
|
133 | let daily = match m.get_one::<bool>("daily") {
| _____________________^
134 | | Some(x) => x,
135 | | None => &false,
136 | | };
| |_________^ help: replace with: `m.get_one::<bool>("daily").unwrap_or(&false)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or
= note: `#[warn(clippy::manual_unwrap_or)]` on by default
Loading