parsers: Fix some issues reported by clippy.
This commit is contained in:
parent
ebf1091cf1
commit
464b5de0d0
10 changed files with 23 additions and 46 deletions
|
|
@ -189,7 +189,7 @@ impl TryFrom<Element> for PubSubEvent {
|
|||
return Err(Error::ParseError("Unknown child in event element."));
|
||||
}
|
||||
}
|
||||
Ok(payload.ok_or(Error::ParseError("No payload in event element."))?)
|
||||
payload.ok_or(Error::ParseError("No payload in event element."))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue