summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/error.rs b/src/error.rs
index 9278f1b..b12914c 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -3,10 +3,7 @@ use std::str::Utf8Error;
use quick_xml::events::attributes::AttrError;
use rsasl::mechname::MechanismNameError;
-use crate::{
- jid::ParseError,
- stanza::{self, ElementError, ElementParseError},
-};
+use crate::jid::ParseError;
#[derive(Debug)]
pub enum JabberError {
@@ -22,14 +19,12 @@ pub enum JabberError {
NoType,
IDMismatch,
BindError,
- ElementParse(ElementParseError),
ParseError,
UnexpectedEnd,
UnexpectedElement,
UnexpectedText,
XML(quick_xml::Error),
SASL(SASLError),
- Element(ElementError<'static>),
JID(ParseError),
}
@@ -71,12 +66,6 @@ impl From<quick_xml::Error> for JabberError {
}
}
-impl From<stanza::ElementError<'static>> for JabberError {
- fn from(e: stanza::ElementError<'static>) -> Self {
- Self::Element(e)
- }
-}
-
impl From<AttrError> for JabberError {
fn from(e: AttrError) -> Self {
Self::XML(e.into())
@@ -88,9 +77,3 @@ impl From<ParseError> for JabberError {
Self::JID(e)
}
}
-
-impl From<ElementParseError> for JabberError {
- fn from(e: ElementParseError) -> Self {
- Self::ElementParse(e)
- }
-}