From ae00389cb74919a93de9d67c996bebed4f241cbb Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 12 Jul 2023 12:41:36 +0100 Subject: move Element to stanza and make write() a method --- src/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/error.rs') 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 for JabberError { } } -impl From> for JabberError { - fn from(e: element::ElementError<'static>) -> Self { +impl From> for JabberError { + fn from(e: stanza::ElementError<'static>) -> Self { Self::Element(e) } } -- cgit