Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve unnecessary_map_or clippy lint
warning: this `map_or` is redundant --> src/snapshot.rs:278:40 | 278 | ... if variants.get("None").map_or(false, Vec::is_empty) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_some_and instead: `variants.get("None").is_some_and(Vec::is_empty)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `-W clippy::unnecessary-map-or` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::unnecessary_map_or)]`
- Loading branch information