From 5727122185231677f37f012610e1d6ee1a9e3d80 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 6 Oct 2024 23:41:07 +0200 Subject: [PATCH] Ignore needless_lifetimes clippy lint warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:118:6 | 118 | impl<'a, 'b, D, F> Deserializer<'a, 'b, D, F> | ^^ ^^ | = 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 | 118 - impl<'a, 'b, D, F> Deserializer<'a, 'b, D, F> 118 + impl<'b, D, F> Deserializer<'_, 'b, D, F> | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:150:6 | 150 | impl<'a> Display for Path<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 150 - impl<'a> Display for Path<'a> { 150 + impl Display for Path<'_> { | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:154:14 | 154 | impl<'a> Display for Parent<'a> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 154 - impl<'a> Display for Parent<'a> { 154 + impl Display for Parent<'_> { | warning: the following explicit lifetimes could be elided: 'a, 'b --> src/lib.rs:176:6 | 176 | impl<'a, 'b, 'de, D, F> de::Deserializer<'de> for Deserializer<'a, 'b, D, F> | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 176 - impl<'a, 'b, 'de, D, F> de::Deserializer<'de> for Deserializer<'a, 'b, D, F> 176 + impl<'de, D, F> de::Deserializer<'de> for Deserializer<'_, '_, D, F> | warning: the following explicit lifetimes could be elided: 'a, 'b --> src/lib.rs:465:6 | 465 | impl<'a, 'b, 'de, X, F> Visitor<'de> for Wrap<'a, 'b, X, F> | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 465 - impl<'a, 'b, 'de, X, F> Visitor<'de> for Wrap<'a, 'b, X, F> 465 + impl<'de, X, F> Visitor<'de> for Wrap<'_, '_, X, F> | warning: the following explicit lifetimes could be elided: 'a, 'b --> src/lib.rs:685:6 | 685 | impl<'a, 'b, 'de, X, F> de::VariantAccess<'de> for Wrap<'a, 'b, X, F> | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 685 - impl<'a, 'b, 'de, X, F> de::VariantAccess<'de> for Wrap<'a, 'b, X, F> 685 + impl<'de, X, F> de::VariantAccess<'de> for Wrap<'_, '_, X, F> | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:740:6 | 740 | impl<'a, 'de, X> DeserializeSeed<'de> for CaptureKey<'a, X> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 740 - impl<'a, 'de, X> DeserializeSeed<'de> for CaptureKey<'a, X> 740 + impl<'de, X> DeserializeSeed<'de> for CaptureKey<'_, X> | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:756:6 | 756 | impl<'a, 'de, X> de::Deserializer<'de> for CaptureKey<'a, X> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 756 - impl<'a, 'de, X> de::Deserializer<'de> for CaptureKey<'a, X> 756 + impl<'de, X> de::Deserializer<'de> for CaptureKey<'_, X> | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:1023:6 | 1023 | impl<'a, 'de, X> Visitor<'de> for CaptureKey<'a, X> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 1023 - impl<'a, 'de, X> Visitor<'de> for CaptureKey<'a, X> 1023 + impl<'de, X> Visitor<'de> for CaptureKey<'_, X> | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:1222:6 | 1222 | impl<'a, 'de, X> de::EnumAccess<'de> for CaptureKey<'a, X> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 1222 - impl<'a, 'de, X> de::EnumAccess<'de> for CaptureKey<'a, X> 1222 + impl<'de, X> de::EnumAccess<'de> for CaptureKey<'_, X> | warning: the following explicit lifetimes could be elided: 'a --> src/lib.rs:1255:6 | 1255 | impl<'a, 'de, X, F> DeserializeSeed<'de> for TrackedSeed<'a, X, F> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 1255 - impl<'a, 'de, X, F> DeserializeSeed<'de> for TrackedSeed<'a, X, F> 1255 + impl<'de, X, F> DeserializeSeed<'de> for TrackedSeed<'_, X, F> | warning: the following explicit lifetimes could be elided: 'a, 'b --> src/lib.rs:1294:6 | 1294 | impl<'a, 'b, 'de, X, F> de::SeqAccess<'de> for SeqAccess<'a, 'b, X, F> | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 1294 - impl<'a, 'b, 'de, X, F> de::SeqAccess<'de> for SeqAccess<'a, 'b, X, F> 1294 + impl<'de, X, F> de::SeqAccess<'de> for SeqAccess<'_, '_, X, F> | warning: the following explicit lifetimes could be elided: 'a, 'b --> src/lib.rs:1346:6 | 1346 | impl<'a, 'b, 'de, X, F> de::MapAccess<'de> for MapAccess<'a, 'b, X, F> | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 1346 - impl<'a, 'b, 'de, X, F> de::MapAccess<'de> for MapAccess<'a, 'b, X, F> 1346 + impl<'de, X, F> de::MapAccess<'de> for MapAccess<'_, '_, X, F> | --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8ccb417..12b3ae3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,7 +87,7 @@ #![no_std] #![doc(html_root_url = "https://docs.rs/serde_ignored/0.1.10")] -#![allow(clippy::missing_errors_doc)] +#![allow(clippy::missing_errors_doc, clippy::needless_lifetimes)] extern crate alloc;