diff options
author | 2025-06-01 13:31:52 +0100 | |
---|---|---|
committer | 2025-06-01 13:31:52 +0100 | |
commit | c6bdf077b82b30f8228b56702bd3ee71d92b3910 (patch) | |
tree | db12501d5d60906b77b19c1395a522967957c715 /stanza/src/bind.rs | |
parent | c196aecbe7b3b29fbfff9e997478688e6833b7f3 (diff) | |
download | luz-c6bdf077b82b30f8228b56702bd3ee71d92b3910.tar.gz luz-c6bdf077b82b30f8228b56702bd3ee71d92b3910.tar.bz2 luz-c6bdf077b82b30f8228b56702bd3ee71d92b3910.zip |
refactor: utilise new jid type safetyHEADmainjid-refactor
Diffstat (limited to 'stanza/src/bind.rs')
-rw-r--r-- | stanza/src/bind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stanza/src/bind.rs b/stanza/src/bind.rs index 3ce2246..0f0f681 100644 --- a/stanza/src/bind.rs +++ b/stanza/src/bind.rs @@ -1,4 +1,4 @@ -use jid::JID; +use jid::FullJID; use peanuts::{Element, FromElement, IntoElement}; pub const XMLNS: &str = "urn:ietf:params:xml:ns:xmpp-bind"; @@ -54,7 +54,7 @@ impl IntoElement for BindType { // minLength 8 maxLength 3071 #[derive(Clone, Debug)] -pub struct FullJidType(pub JID); +pub struct FullJidType(pub FullJID); impl FromElement for FullJidType { fn from_element(mut element: peanuts::Element) -> peanuts::DeserializeResult<Self> { |