Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve map_unwrap_or pedantic clippy lint
error: called `map(<f>).unwrap_or(<a>)` on an `Option` value. This can be done more directly by calling `map_or(<a>, <f>)` instead --> tests/repo/mod.rs:73:8 | 73 | if path.extension().map(|e| e != "rs").unwrap_or(true) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D clippy::map-unwrap-or` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or help: use `map_or(<a>, <f>)` instead | 73 - if path.extension().map(|e| e != "rs").unwrap_or(true) { 73 + if path.extension().map_or(true, |e| e != "rs") { |
- Loading branch information