diff options
author | 2025-05-30 14:01:24 +0100 | |
---|---|---|
committer | 2025-05-30 14:01:24 +0100 | |
commit | ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4 (patch) | |
tree | fa53ec9ef21468d5eeeb2aed7caf3eb4cc2c109f /stanza/src/xep_0115.rs | |
parent | 73d33c46fb9d65eb0c831fcf6b408f1d67a99f44 (diff) | |
download | luz-ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4.tar.gz luz-ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4.tar.bz2 luz-ba4fd6d8e9ca18cc18e75d48ab8a3a0bebc7b4e4.zip |
chore(stanza): update peanuts and use workspace deps
Diffstat (limited to 'stanza/src/xep_0115.rs')
-rw-r--r-- | stanza/src/xep_0115.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/stanza/src/xep_0115.rs b/stanza/src/xep_0115.rs index 1c2ef69..1c9cd6f 100644 --- a/stanza/src/xep_0115.rs +++ b/stanza/src/xep_0115.rs @@ -1,7 +1,4 @@ -use peanuts::{ - element::{FromElement, IntoElement}, - Element, -}; +use peanuts::{Element, FromElement, IntoElement}; pub const XMLNS: &str = "http://jabber.org/protocol/caps"; @@ -14,7 +11,7 @@ pub struct C { } impl FromElement for C { - fn from_element(mut element: Element) -> peanuts::element::DeserializeResult<Self> { + fn from_element(mut element: Element) -> peanuts::DeserializeResult<Self> { element.check_name("c")?; element.check_namespace(XMLNS)?; @@ -33,7 +30,7 @@ impl FromElement for C { } impl IntoElement for C { - fn builder(&self) -> peanuts::element::ElementBuilder { + fn builder(&self) -> peanuts::ElementBuilder { Element::builder("c", Some(XMLNS)) .push_attribute_opt("ext", self.ext.clone()) .push_attribute("hash", self.hash.clone()) |