Fix clippy lints.

This commit is contained in:
Emmanuel Gil Peyrot 2019-02-21 21:00:58 +01:00
commit 637c3eadd7
20 changed files with 56 additions and 75 deletions

View file

@ -96,7 +96,7 @@ impl Iq {
from: None,
to: None,
id,
payload: IqType::Result(payload.map(|payload| payload.into())),
payload: IqType::Result(payload.map(Into::into)),
}
}
@ -188,9 +188,9 @@ impl TryFrom<Element> for Iq {
};
Ok(Iq {
from: from,
to: to,
id: id,
from,
to,
id,
payload: type_,
})
}