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/normalize.rs:287:24 | 287 | && line | ________________________^ 288 | | .get(indent + 11..indent + 51) 289 | | .map_or(false, is_ascii_lowercase_hex) | |______________________________________________________________^ | = 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)]` help: use is_some_and instead | 287 ~ && line 288 + .get(indent + 11..indent + 51).is_some_and(is_ascii_lowercase_hex) | warning: this `map_or` is redundant --> src/normalize.rs:305:24 | 305 | if line | ________________________^ 306 | | .get(hash_start..hash_end) 307 | | .map_or(false, is_ascii_lowercase_hex) | |______________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or help: use is_some_and instead | 305 ~ if line 306 + .get(hash_start..hash_end).is_some_and(is_ascii_lowercase_hex) |
- Loading branch information