Fix all warnings issued by cargo clippy.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-21 01:28:58 +01:00
commit 3209b04a50
4 changed files with 16 additions and 16 deletions

View file

@ -54,7 +54,7 @@ pub fn parse_ibb(root: &Element) -> Result<IBB, Error> {
let sid = required_attr(root, "sid", Error::ParseError("Required attribute 'sid' missing in open element."))?;
let stanza = root.attr("stanza")
.and_then(|value| value.parse().ok())
.unwrap_or(Default::default());
.unwrap_or_default();
for _ in root.children() {
return Err(Error::ParseError("Unknown child in open element."));
}