From 26dd6a2a299fa2492f4a940c0a6b30d82b778bce Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 12 Feb 2025 18:41:30 +0100 Subject: [PATCH] minidom: Remove unused lifetimes These can be elided just fine. skip-changelog: This is purely internal change. --- minidom/src/convert.rs | 4 ++-- minidom/src/element.rs | 2 +- minidom/src/namespaces.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/minidom/src/convert.rs b/minidom/src/convert.rs index 3db89720..d113f151 100644 --- a/minidom/src/convert.rs +++ b/minidom/src/convert.rs @@ -49,13 +49,13 @@ impl IntoAttributeValue for String { } } -impl<'a> IntoAttributeValue for &'a String { +impl IntoAttributeValue for &String { fn into_attribute_value(self) -> Option { Some(self.to_owned()) } } -impl<'a> IntoAttributeValue for &'a str { +impl IntoAttributeValue for &str { fn into_attribute_value(self) -> Option { Some(self.to_owned()) } diff --git a/minidom/src/element.rs b/minidom/src/element.rs index 290fdc18..1f0c78ca 100644 --- a/minidom/src/element.rs +++ b/minidom/src/element.rs @@ -806,7 +806,7 @@ pub struct ContentsAsChildren<'a> { iter: alloc::vec::Drain<'a, Node>, } -impl<'a> Iterator for ContentsAsChildren<'a> { +impl Iterator for ContentsAsChildren<'_> { type Item = Element; fn next(&mut self) -> Option { diff --git a/minidom/src/namespaces.rs b/minidom/src/namespaces.rs index 7d817440..bf2766de 100644 --- a/minidom/src/namespaces.rs +++ b/minidom/src/namespaces.rs @@ -26,7 +26,7 @@ impl<'a> From<&'a str> for NSChoice<'a> { } } -impl<'a> NSChoice<'a> { +impl NSChoice<'_> { pub(crate) fn compare(&self, ns: &str) -> bool { match (ns, &self) { (_, NSChoice::None) => false,