minidom: Fix all clippy warnings

This commit is contained in:
Emmanuel Gil Peyrot 2024-07-03 11:18:54 +02:00
parent 4356cab33c
commit 1adccee40b
2 changed files with 5 additions and 5 deletions

View file

@ -413,7 +413,7 @@ impl Element {
}, },
None => RxmlNamespace::NONE, None => RxmlNamespace::NONE,
}; };
writer.write(Item::Attribute(&namespace, name, (&**value).into()))?; writer.write(Item::Attribute(&namespace, name, value))?;
} }
if !self.children.is_empty() { if !self.children.is_empty() {

View file

@ -159,10 +159,10 @@ impl Node {
#[doc(hidden)] #[doc(hidden)]
pub(crate) fn write_to_inner<W: Write>(&self, writer: &mut ItemWriter<W>) -> Result<()> { pub(crate) fn write_to_inner<W: Write>(&self, writer: &mut ItemWriter<W>) -> Result<()> {
match *self { match self {
Node::Element(ref elmt) => elmt.write_to_inner(writer)?, Node::Element(elmt) => elmt.write_to_inner(writer)?,
Node::Text(ref s) => { Node::Text(s) => {
writer.write(Item::Text((&**s).into()))?; writer.write(Item::Text(s))?;
} }
} }