diff options
Diffstat (limited to 'stanza/src/xep_0172.rs')
-rw-r--r-- | stanza/src/xep_0172.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/stanza/src/xep_0172.rs b/stanza/src/xep_0172.rs index 1c24200..54846b8 100644 --- a/stanza/src/xep_0172.rs +++ b/stanza/src/xep_0172.rs @@ -1,7 +1,4 @@ -use peanuts::{ - element::{FromElement, IntoElement}, - Element, -}; +use peanuts::{Element, FromElement, IntoElement}; pub const XMLNS: &str = "http://jabber.org/protocol/nick"; @@ -9,7 +6,7 @@ pub const XMLNS: &str = "http://jabber.org/protocol/nick"; pub struct Nick(pub String); impl FromElement for Nick { - fn from_element(mut element: peanuts::Element) -> peanuts::element::DeserializeResult<Self> { + fn from_element(mut element: peanuts::Element) -> peanuts::DeserializeResult<Self> { element.check_name("nick")?; element.check_namespace(XMLNS)?; @@ -18,7 +15,7 @@ impl FromElement for Nick { } impl IntoElement for Nick { - fn builder(&self) -> peanuts::element::ElementBuilder { + fn builder(&self) -> peanuts::ElementBuilder { let builder = Element::builder("nick", Some(XMLNS)); if self.0.is_empty() { |