Fix most clippy warnings.

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-07 15:23:06 +01:00
commit 4ec92b16ac
5 changed files with 9 additions and 12 deletions

View file

@ -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