From 27061af259970a1e3a773f8fc5129d24bcbe8918 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 6 Oct 2024 23:27:26 +0200 Subject: [PATCH] Ignore needless_lifetimes clippy lint warning: the following explicit lifetimes could be elided: 'a --> src/rcvec.rs:96:6 | 96 | impl<'a, T> RcVecMut<'a, T> { | ^^ ^^ | = 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 | 96 - impl<'a, T> RcVecMut<'a, T> { 96 + impl RcVecMut<'_, T> { | --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 1430306..da5fc7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,6 +105,7 @@ clippy::missing_safety_doc, clippy::must_use_candidate, clippy::needless_doctest_main, + clippy::needless_lifetimes, clippy::new_without_default, clippy::return_self_not_must_use, clippy::shadow_unrelated,