Skip to content

Commit

Permalink
Ignore unnecessary_map_or clippy lint
Browse files Browse the repository at this point in the history
    warning: this `map_or` can be simplified
      --> src/table.rs:76:12
       |
    76 |         if function_filter.map_or(true, |ff| ff.is_match(&row.0)) {
       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `function_filter.is_none_or(|ff| ff.is_match(&row.0))`
       |
       = 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)]`
  • Loading branch information
dtolnay committed Nov 30, 2024
1 parent 7decf71 commit e2b44fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
clippy::struct_excessive_bools,
clippy::too_many_lines,
clippy::uninlined_format_args,
clippy::unnecessary_map_or,
clippy::unseparated_literal_suffix,
clippy::unwrap_or_default
)]
Expand Down

0 comments on commit e2b44fc

Please sign in to comment.