From dcb7ac8db21548be2a08d2327fb32e02e23006b1 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 19 May 2017 00:10:23 +0100 Subject: [PATCH] iq: Remove a panic! --- src/iq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iq.rs b/src/iq.rs index f040b1bd..b6216898 100644 --- a/src/iq.rs +++ b/src/iq.rs @@ -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 {