mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
iq: Remove a panic!
This commit is contained in:
parent
6df3c4a679
commit
dcb7ac8db2
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ impl<'a> TryFrom<&'a Element> for Iq {
|
|||
return Err(Error::ParseError("Wrong number of children in iq element."));
|
||||
}
|
||||
} else {
|
||||
panic!()
|
||||
return Err(Error::ParseError("Unknown iq type."));
|
||||
};
|
||||
|
||||
Ok(Iq {
|
||||
|
|
Loading…
Reference in a new issue