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: 'de
      --> src/inherit.rs:23:6
       |
    23 | impl<'de> Visitor<'de> for True {
       |      ^^^          ^^^
       |
       = 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
       |
    23 - impl<'de> Visitor<'de> for True {
    23 + impl Visitor<'_> for True {
       |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/normalize.rs:158:6
        |
    158 | impl<'a> Filter<'a> {
        |      ^^         ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    158 - impl<'a> Filter<'a> {
    158 + impl Filter<'_> {
        |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent beb0c13 commit 2860c0f
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 @@ -223,6 +223,7 @@
clippy::module_inception,
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::needless_lifetimes,
clippy::needless_pass_by_value,
clippy::non_ascii_literal,
clippy::range_plus_one,
Expand Down

0 comments on commit 2860c0f

Please sign in to comment.