diff options
author | cel 🌸 <cel@blos.sm> | 2023-07-12 12:41:36 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-07-12 12:41:36 +0100 |
commit | ae00389cb74919a93de9d67c996bebed4f241cbb (patch) | |
tree | 6dbca9aae5bb6943c112ae6ac567c753cf131e2d /src/error.rs | |
parent | f43911ccbae3856b35b0d3e8ec6ac6450e295da6 (diff) | |
download | luz-ae00389cb74919a93de9d67c996bebed4f241cbb.tar.gz luz-ae00389cb74919a93de9d67c996bebed4f241cbb.tar.bz2 luz-ae00389cb74919a93de9d67c996bebed4f241cbb.zip |
move Element to stanza and make write() a method
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs index 37be7fa..7f704e5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -4,8 +4,8 @@ use quick_xml::events::attributes::AttrError; use rsasl::mechname::MechanismNameError; use crate::{ - element::{self, ElementError}, jid::ParseError, + stanza::{self, ElementError}, }; #[derive(Debug)] @@ -54,8 +54,8 @@ impl From<quick_xml::Error> for JabberError { } } -impl From<element::ElementError<'static>> for JabberError { - fn from(e: element::ElementError<'static>) -> Self { +impl From<stanza::ElementError<'static>> for JabberError { + fn from(e: stanza::ElementError<'static>) -> Self { Self::Element(e) } } |