summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-10-21 01:28:54 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-10-21 01:28:54 +0100
commite893869df974ebb7afcc318119840c53f8f377cb (patch)
tree3319dba477784c126011acc5422c9973782f7850 /src/error.rs
parentba94ee66fafbabd63d6d1ed5edf435d4c46c6796 (diff)
downloadluz-e893869df974ebb7afcc318119840c53f8f377cb.tar.gz
luz-e893869df974ebb7afcc318119840c53f8f377cb.tar.bz2
luz-e893869df974ebb7afcc318119840c53f8f377cb.zip
implement connection
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)
- }
-}