Fix most clippy warnings.
This commit is contained in:
parent
2b29748e6b
commit
4ec92b16ac
5 changed files with 9 additions and 12 deletions
|
|
@ -217,10 +217,7 @@ impl<'a> Into<Element> for &'a Fin {
|
|||
fn into(self) -> Element {
|
||||
let mut elem = Element::builder("fin")
|
||||
.ns(ns::MAM)
|
||||
.attr("complete", match self.complete {
|
||||
true => Some("true"),
|
||||
false => None,
|
||||
})
|
||||
.attr("complete", if self.complete { Some("true") } else { None })
|
||||
.build();
|
||||
elem.append_child((&self.set).into());
|
||||
elem
|
||||
|
|
|
|||
Loading…
Reference in a new issue