aboutsummaryrefslogtreecommitdiffstats
path: root/stanza/src/bind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stanza/src/bind.rs')
-rw-r--r--stanza/src/bind.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/stanza/src/bind.rs b/stanza/src/bind.rs
index 63644b1..07a8c0f 100644
--- a/stanza/src/bind.rs
+++ b/stanza/src/bind.rs
@@ -13,8 +13,8 @@ pub struct Bind {
impl FromElement for Bind {
fn from_element(mut element: peanuts::Element) -> peanuts::element::DeserializeResult<Self> {
- element.check_name("bind");
- element.check_name(XMLNS);
+ element.check_name("bind")?;
+ element.check_name(XMLNS)?;
let r#type = element.pop_child_opt()?;
@@ -61,8 +61,8 @@ pub struct FullJidType(pub JID);
impl FromElement for FullJidType {
fn from_element(mut element: peanuts::Element) -> peanuts::element::DeserializeResult<Self> {
- element.check_name("jid");
- element.check_namespace(XMLNS);
+ element.check_name("jid")?;
+ element.check_namespace(XMLNS)?;
let jid = element.pop_value()?;