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."));
|
return Err(Error::ParseError("Wrong number of children in iq element."));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
panic!()
|
return Err(Error::ParseError("Unknown iq type."));
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(Iq {
|
Ok(Iq {
|
||||||
|
|
Loading…
Reference in a new issue