2025 people #350
GitHub Actions / clippy
failed
Jan 13, 2025 in 0s
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
blsforme/src/manager.rs|63 col 33| warning: this map_or
is redundant
--> blsforme/src/manager.rs:63:33
|
63 | .filter(|d| d.path().extension().map_or(false, |e| e == "cmdline"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: d.path().extension().is_some_and(|e| e == "cmdline")
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: #[warn(clippy::unnecessary_map_or)]
on by default
Filtered Findings (0)
Annotations
Check warning on line 63 in blsforme/src/manager.rs
github-actions / clippy
[clippy] blsforme/src/manager.rs#L63
warning: this `map_or` is redundant
--> blsforme/src/manager.rs:63:33
|
63 | .filter(|d| d.path().extension().map_or(false, |e| e == "cmdline"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `d.path().extension().is_some_and(|e| e == "cmdline")`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
Raw output
blsforme/src/manager.rs:63:33:w:warning: this `map_or` is redundant
--> blsforme/src/manager.rs:63:33
|
63 | .filter(|d| d.path().extension().map_or(false, |e| e == "cmdline"))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `d.path().extension().is_some_and(|e| e == "cmdline")`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `#[warn(clippy::unnecessary_map_or)]` on by default
__END__
Loading