Skip to content

Commit b8a555a

Browse files
committed
Ignore needless_lifetimes clippy lint
warning: the following explicit lifetimes could be elided: 'a --> src/expand.rs:443:10 | 443 | impl<'a> VisitMut for AssociatedTypeImplTraits<'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 | 443 - impl<'a> VisitMut for AssociatedTypeImplTraits<'a> { 443 + impl VisitMut for AssociatedTypeImplTraits<'_> { | warning: the following explicit lifetimes could be elided: 'a --> tests/test.rs:453:10 | 453 | impl<'a> Trait2 for &'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 | 453 - impl<'a> Trait2 for &'a () { 453 + impl Trait2 for &() { | warning: the following explicit lifetimes could be elided: 'a --> tests/test.rs:1431:10 | 1431 | impl<'a> Drop for IncrementOnDrop<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 1431 - impl<'a> Drop for IncrementOnDrop<'a> { 1431 + impl Drop for IncrementOnDrop<'_> { |
1 parent 7553de3 commit b8a555a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
clippy::items_after_statements,
326326
clippy::match_like_matches_macro,
327327
clippy::module_name_repetitions,
328+
clippy::needless_lifetimes,
328329
clippy::shadow_unrelated,
329330
clippy::similar_names,
330331
clippy::too_many_lines,

tests/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
clippy::let_unit_value,
1010
clippy::missing_panics_doc,
1111
clippy::missing_safety_doc,
12+
clippy::needless_lifetimes,
1213
clippy::needless_return,
1314
clippy::non_minimal_cfg,
1415
clippy::trivially_copy_pass_by_ref,

0 commit comments

Comments
 (0)