diff --git a/minidom/src/convert.rs b/minidom/src/convert.rs index 3db89720b7c1c243ad49bb118adf08e06572278c..d113f151749f75eedfaa7425b6db0324f874ea85 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 290fdc181a59fc704174eabb6ef46ca6b358842a..1f0c78ca11e392e3cc97a15bac488d79417ef5ed 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 7d81744065b8e5b7af19779e94c9b1c18486c6b9..bf2766ded32b6607c7fbf9a6761b8365703f925d 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,