minidom: Remove unused lifetimes

Emmanuel Gil Peyrot created

These can be elided just fine.

skip-changelog: This is purely internal change.

Change summary

minidom/src/convert.rs    | 4 ++--
minidom/src/element.rs    | 2 +-
minidom/src/namespaces.rs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)

Detailed changes

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<String> {
         Some(self.to_owned())
     }
 }
 
-impl<'a> IntoAttributeValue for &'a str {
+impl IntoAttributeValue for &str {
     fn into_attribute_value(self) -> Option<String> {
         Some(self.to_owned())
     }

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<Element> {

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,