Skip to content

Commit 45fd82a

Browse files
committed
Ignore elidable_lifetime_names pedantic clippy lint
warning: the following explicit lifetimes could be elided: 'a --> src/expand.rs:445:10 | 445 | impl<'a> VisitMut for AssociatedTypeImplTraits<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names = note: `-W clippy::elidable-lifetime-names` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::elidable_lifetime_names)]` help: elide the lifetimes | 445 - impl<'a> VisitMut for AssociatedTypeImplTraits<'a> { 445 + impl VisitMut for AssociatedTypeImplTraits<'_> { | warning: the following explicit lifetimes could be elided: 'a --> tests/test.rs:1432:10 | 1432 | impl<'a> Drop for IncrementOnDrop<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names = note: `-W clippy::elidable-lifetime-names` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::elidable_lifetime_names)]` help: elide the lifetimes | 1432 - impl<'a> Drop for IncrementOnDrop<'a> { 1432 + impl Drop for IncrementOnDrop<'_> { |
1 parent ea2f2a2 commit 45fd82a

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
@@ -218,6 +218,7 @@
218218
#![allow(
219219
clippy::default_trait_access,
220220
clippy::doc_markdown,
221+
clippy::elidable_lifetime_names,
221222
clippy::explicit_auto_deref,
222223
clippy::if_not_else,
223224
clippy::items_after_statements,

tests/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
)]
55
#![deny(rust_2021_compatibility, unused_qualifications)]
66
#![allow(
7+
clippy::elidable_lifetime_names,
78
clippy::incompatible_msrv, // https://github.com/rust-lang/rust-clippy/issues/12257
89
clippy::let_underscore_untyped,
910
clippy::let_unit_value,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy