From c7fca9b08627fe0c4034a3fd38595ffd7dcc8e0e Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 2 Mar 2025 20:49:24 -0800 Subject: [PATCH] Ignore elidable_lifetime_names pedantic clippy lint warning: the following explicit lifetimes could be elided: 'a --> src/ptr.rs:72:6 | 72 | impl<'a, T> Copy for Ref<'a, T> where T: ?Sized {} | ^^ ^^ | = 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 | 72 - impl<'a, T> Copy for Ref<'a, T> where T: ?Sized {} 72 + impl Copy for Ref<'_, T> where T: ?Sized {} | warning: the following explicit lifetimes could be elided: 'a --> src/ptr.rs:74:6 | 74 | impl<'a, T> Clone for Ref<'a, T> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names help: elide the lifetimes | 74 - impl<'a, T> Clone for Ref<'a, T> 74 + impl Clone for Ref<'_, T> | warning: the following explicit lifetimes could be elided: 'a --> src/ptr.rs:136:6 | 136 | impl<'a, T> Copy for Mut<'a, T> where T: ?Sized {} | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names help: elide the lifetimes | 136 - impl<'a, T> Copy for Mut<'a, T> where T: ?Sized {} 136 + impl Copy for Mut<'_, T> where T: ?Sized {} | warning: the following explicit lifetimes could be elided: 'a --> src/ptr.rs:138:6 | 138 | impl<'a, T> Clone for Mut<'a, T> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names help: elide the lifetimes | 138 - impl<'a, T> Clone for Mut<'a, T> 138 + impl Clone for Mut<'_, T> | warning: the following explicit lifetimes could be elided: 'a --> src/ptr.rs:186:6 | 186 | impl<'a, T> Mut<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#elidable_lifetime_names help: elide the lifetimes | 186 - impl<'a, T> Mut<'a, T> { 186 + impl Mut<'_, T> { | --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 8cbb25a..b27a85a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -217,6 +217,7 @@ #![cfg_attr(anyhow_no_unsafe_op_in_unsafe_fn_lint, allow(unused_unsafe))] #![allow( clippy::doc_markdown, + clippy::elidable_lifetime_names, clippy::enum_glob_use, clippy::explicit_auto_deref, clippy::extra_unused_type_parameters,