parsers: Fix some issues reported by clippy.

This commit is contained in:
Emmanuel Gil Peyrot 2021-10-11 15:22:19 +02:00
commit 464b5de0d0
10 changed files with 23 additions and 46 deletions

View file

@ -495,7 +495,7 @@ impl TryFrom<Element> for PubSub {
return Err(Error::ParseError("Unknown child in pubsub element."));
}
}
Ok(payload.ok_or(Error::ParseError("No payload in pubsub element."))?)
payload.ok_or(Error::ParseError("No payload in pubsub element."))
}
}