tokio-xmpp: Update to the new jid crate
This helps a bit thanks to fewer clones, but otherwise there are very few changes.
This commit is contained in:
parent
c7887efbc7
commit
3c9df12606
5 changed files with 10 additions and 12 deletions
|
|
@ -16,7 +16,7 @@ pub async fn start<S: AsyncRead + AsyncWrite + Unpin>(
|
|||
ns: String,
|
||||
) -> Result<XMPPStream<S>, Error> {
|
||||
let attrs = [
|
||||
("to".to_owned(), jid.clone().domain()),
|
||||
("to".to_owned(), jid.domain().to_owned()),
|
||||
("version".to_owned(), "1.0".to_owned()),
|
||||
("xmlns".to_owned(), ns.clone()),
|
||||
("xmlns:stream".to_owned(), ns::STREAM.to_owned()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue