Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warning: this `map_or` can be simplified --> src/select.rs:244:9 | 244 | self.cur().map_or(true, |c| c == ',' || c == '-') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `self.cur().is_none_or(|c| c == ',' || c == '-')` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `#[warn(clippy::unnecessary_map_or)]` on by default warning: this `map_or` can be simplified --> src/select.rs:248:9 | 248 | self.cur().map_or(true, |c| c == ',') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `self.cur().is_none_or(|c| c == ',')` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or warning: this `map_or` can be simplified --> src/util.rs:1243:9 | 1243 | self.cur().map_or(true, |c| c == ',') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `self.cur().is_none_or(|c| c == ',')` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
- Loading branch information