Skip to content

Commit

Permalink
Ignore needless_lifetimes clippy lint
Browse files Browse the repository at this point in the history
    warning: the following explicit lifetimes could be elided: 'a
      --> src/main.rs:77:12
       |
    77 | impl<'ast, 'a> Visit<'ast> for AttrVisitor<'a> {
       |            ^^                              ^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
       = note: `-W clippy::needless-lifetimes` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::needless_lifetimes)]`
    help: elide the lifetimes
       |
    77 - impl<'ast, 'a> Visit<'ast> for AttrVisitor<'a> {
    77 + impl<'ast> Visit<'ast> for AttrVisitor<'_> {
       |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent 7e14a15 commit 203bb82
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 @@ -5,6 +5,7 @@
clippy::items_after_statements,
clippy::let_underscore_untyped,
clippy::match_same_arms,
clippy::needless_lifetimes,
clippy::similar_names,
clippy::too_many_lines,
clippy::uninlined_format_args,
Expand Down

0 comments on commit 203bb82

Please sign in to comment.