Skip to content
Myr

Ignore elidable_lifetime_names pedantic clippy lint

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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<T> 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<T> 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<T> 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<T> 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<T> Mut<'_, T> { |

authored by David Tolnay · committed by David Tolnay · parent 427c0bb · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/lib.rs+1 added
215 unmodified lines
216)]217#![cfg_attr(anyhow_no_unsafe_op_in_unsafe_fn_lint, allow(unused_unsafe))]218#![allow(219 clippy::doc_markdown,220 clippy::elidable_lifetime_names,221 clippy::enum_glob_use,222 clippy::explicit_auto_deref,223 clippy::extra_unused_type_parameters,224 clippy::incompatible_msrv,
509 unmodified lines