Skip to content

Commit

Permalink
Ignore match_like_matches_macro clippy lint
Browse files Browse the repository at this point in the history
error: match expression looks like `matches!` macro
   --> src/expand.rs:284:20
    |
284 |                   if match *arg.ty {
    |  ____________________^
285 | |                     Type::Reference(_) => false,
286 | |                     _ => true,
287 | |                 } {
    | |_________________^ help: try this: `!matches!(*arg.ty, Type::Reference(_))`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
    = note: `-D clippy::match-like-matches-macro` implied by `-D clippy::all`
  • Loading branch information
dtolnay committed Mar 18, 2023
1 parent 0d0a346 commit 15fd282
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@
clippy::explicit_auto_deref,
clippy::if_not_else,
clippy::items_after_statements,
clippy::match_like_matches_macro,
clippy::module_name_repetitions,
clippy::shadow_unrelated,
clippy::similar_names,
Expand Down

0 comments on commit 15fd282

Please sign in to comment.