Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(volo-build): fix clippy warning
unnecessary_map_or
(#536)
``` error: this `map_or` is redundant --> volo-build/src/util.rs:313:16 | 313 | if repo.workdir().map_or(false, |workdir| workdir == path) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(repo.workdir() == Some(path))` | = 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)]` ``` Signed-off-by: Yu Li <[email protected]>
- Loading branch information