Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix clippy::unnecessary_map_or warning
``` error: this `map_or` is redundant --> src/cli.rs:509:16 | 509 | if optional_deps.as_ref().map_or(false, |d| d.contains(f)) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `optional_deps.as_ref().is_some_and(|d| d.contains(f))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `-D clippy::unnecessary-map-or` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]` ```
- Loading branch information