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/matrix.rs:67:6
       |
    67 | impl<'a> DoubleEndedIterator for Iter<'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
       |
    67 - impl<'a> DoubleEndedIterator for Iter<'a> {
    67 + impl DoubleEndedIterator for Iter<'_> {
       |

    warning: the following explicit lifetimes could be elided: 'a
       --> src/matrix.rs:122:6
        |
    122 | impl<'a> Debug for RelativeRow<'a> {
        |      ^^                        ^^
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    help: elide the lifetimes
        |
    122 - impl<'a> Debug for RelativeRow<'a> {
    122 + impl Debug for RelativeRow<'_> {
        |
  • Loading branch information
dtolnay committed Oct 6, 2024
1 parent 85199bc commit 97766cc
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 @@ -17,6 +17,7 @@
clippy::missing_panics_doc,
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::needless_lifetimes,
clippy::needless_pass_by_value,
clippy::ptr_as_ptr,
clippy::significant_drop_in_scrutinee,
Expand Down

0 comments on commit 97766cc

Please sign in to comment.