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/duration.rs:637:9 | 637 | self.0.map_or(false, |this| this == *other) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(self.0 == Some(*other))` | = 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)]` error: this `map_or` is redundant --> src/instant.rs:163:9 | 163 | self.0.map_or(false, |this| this == *other) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(self.0 == Some(*other))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or ```
- Loading branch information