minidom: Fix all clippy warnings
This commit is contained in:
parent
4356cab33c
commit
1adccee40b
2 changed files with 5 additions and 5 deletions
|
@ -413,7 +413,7 @@ impl Element {
|
|||
},
|
||||
None => RxmlNamespace::NONE,
|
||||
};
|
||||
writer.write(Item::Attribute(&namespace, name, (&**value).into()))?;
|
||||
writer.write(Item::Attribute(&namespace, name, value))?;
|
||||
}
|
||||
|
||||
if !self.children.is_empty() {
|
||||
|
|
|
@ -159,10 +159,10 @@ impl Node {
|
|||
|
||||
#[doc(hidden)]
|
||||
pub(crate) fn write_to_inner<W: Write>(&self, writer: &mut ItemWriter<W>) -> Result<()> {
|
||||
match *self {
|
||||
Node::Element(ref elmt) => elmt.write_to_inner(writer)?,
|
||||
Node::Text(ref s) => {
|
||||
writer.write(Item::Text((&**s).into()))?;
|
||||
match self {
|
||||
Node::Element(elmt) => elmt.write_to_inner(writer)?,
|
||||
Node::Text(s) => {
|
||||
writer.write(Item::Text(s))?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue