aboutsummaryrefslogtreecommitdiffstats
path: root/stanza/src/xep_0060/errors.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-05-30 14:01:24 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-05-30 14:01:24 +0100
commitba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4 (patch)
treefa53ec9ef21468d5eeeb2aed7caf3eb4cc2c109f /stanza/src/xep_0060/errors.rs
parent73d33c46fb9d65eb0c831fcf6b408f1d67a99f44 (diff)
downloadluz-ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4.tar.gz
luz-ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4.tar.bz2
luz-ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4.zip
chore(stanza): update peanuts and use workspace deps
Diffstat (limited to 'stanza/src/xep_0060/errors.rs')
-rw-r--r--stanza/src/xep_0060/errors.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/stanza/src/xep_0060/errors.rs b/stanza/src/xep_0060/errors.rs
index e6817ac..6c6c530 100644
--- a/stanza/src/xep_0060/errors.rs
+++ b/stanza/src/xep_0060/errors.rs
@@ -1,9 +1,6 @@
use std::{fmt::Display, str::FromStr};
-use peanuts::{
- element::{FromElement, IntoElement},
- DeserializeError, Element,
-};
+use peanuts::{DeserializeError, Element, FromElement, IntoElement};
use thiserror::Error;
use crate::{client::error::ErrorType, stanza_error::Error as StanzaError};
@@ -121,7 +118,7 @@ impl Error {
}
impl FromElement for Error {
- fn from_element(mut element: Element) -> peanuts::element::DeserializeResult<Self> {
+ fn from_element(mut element: Element) -> peanuts::DeserializeResult<Self> {
match element.identify() {
(Some(XMLNS), "closed-node") => Ok(Self::ClosedNode),
(Some(XMLNS), "configuration-required") => Ok(Self::ConfigurationRequired),
@@ -154,7 +151,7 @@ impl FromElement for Error {
}
impl IntoElement for Error {
- fn builder(&self) -> peanuts::element::ElementBuilder {
+ fn builder(&self) -> peanuts::ElementBuilder {
match self {
Error::ClosedNode => Element::builder("closed-node", Some(XMLNS)),
Error::ConfigurationRequired => Element::builder("configuration-required", Some(XMLNS)),