diff --git a/xmpp-parsers/src/bookmarks2.rs b/xmpp-parsers/src/bookmarks2.rs index 27711fd8..ae81974d 100644 --- a/xmpp-parsers/src/bookmarks2.rs +++ b/xmpp-parsers/src/bookmarks2.rs @@ -63,7 +63,7 @@ mod tests { #[test] fn simple() { - let elem: Element = "" + let elem: Element = "" .parse() .unwrap(); let elem1 = elem.clone(); @@ -79,7 +79,7 @@ mod tests { #[test] fn complete() { - let elem: Element = "Coucousecret".parse().unwrap(); + let elem: Element = "Coucousecret".parse().unwrap(); let conference = Conference::try_from(elem).unwrap(); assert_eq!(conference.autojoin, Autojoin::True); assert_eq!(conference.name, Some(String::from("Test MUC"))); @@ -89,7 +89,7 @@ mod tests { #[test] fn wrapped() { - let elem: Element = "Coucousecret".parse().unwrap(); + let elem: Element = "Coucousecret".parse().unwrap(); let item = PubSubItem::try_from(elem).unwrap(); let payload = item.payload.clone().unwrap(); println!("FOO: payload: {:?}", payload); @@ -102,7 +102,7 @@ mod tests { assert_eq!(conference.clone().nick.unwrap(), "Coucou"); assert_eq!(conference.clone().password.unwrap(), "secret"); - let elem: Element = "Coucousecret".parse().unwrap(); + let elem: Element = "Coucousecret".parse().unwrap(); let mut items = match PubSubEvent::try_from(elem) { Ok(PubSubEvent::PublishedItems { node, items }) => { assert_eq!(&node.0, ns::BOOKMARKS2); diff --git a/xmpp-parsers/src/ns.rs b/xmpp-parsers/src/ns.rs index 42746ff1..a431a3d6 100644 --- a/xmpp-parsers/src/ns.rs +++ b/xmpp-parsers/src/ns.rs @@ -238,7 +238,7 @@ pub const ECAPS2: &str = "urn:xmpp:caps"; pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize"; /// XEP-0402: Bookmarks 2 (This Time it's Serious) -pub const BOOKMARKS2: &str = "urn:xmpp:bookmarks:0"; +pub const BOOKMARKS2: &str = "urn:xmpp:bookmarks:1"; /// XEP-0402: Bookmarks 2 (This Time it's Serious) pub const BOOKMARKS2_COMPAT: &str = "urn:xmpp:bookmarks:0#compat";