xmpp-parsers: Update to the new jid crate

This commit is contained in:
Emmanuel Gil Peyrot 2023-06-20 14:07:50 +02:00
commit 022a920300
18 changed files with 61 additions and 50 deletions

View file

@ -301,7 +301,7 @@ mod tests {
use super::*;
use crate::message::Message;
use crate::presence::{Presence, Type as PresenceType};
use crate::{BareJid, Jid};
use crate::Jid;
#[test]
fn test_simple() {
@ -743,7 +743,7 @@ mod tests {
#[test]
fn message_payload() {
let jid: Jid = Jid::Bare(BareJid::new("louise", "example.com"));
let jid: Jid = Jid::new("louise@example.com").unwrap();
let elem: Element = "<x xmlns='http://jabber.org/protocol/muc#user'/>"
.parse()
.unwrap();