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

@ -100,9 +100,9 @@ impl TryFrom<Element> for Actor {
match (jid, nick) {
(Some(_), Some(_)) | (None, None) => {
return Err(Error::ParseError(
Err(Error::ParseError(
"Either 'jid' or 'nick' attribute is required.",
));
))
}
(Some(jid), _) => Ok(Actor::Jid(jid)),
(_, Some(nick)) => Ok(Actor::Nick(nick)),