diff options
author | cel 🌸 <cel@blos.sm> | 2023-10-20 02:34:47 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-10-20 02:34:47 +0100 |
commit | 2536fa4937f0283b4187142cc6cede8e1dbfafa8 (patch) | |
tree | e62edc29e91a5574e4a35b96745c9454d8bf88a1 /src/client | |
parent | b4652b3939858306806d48781fb7c7b1ec52ad1d (diff) | |
download | luz-2536fa4937f0283b4187142cc6cede8e1dbfafa8.tar.gz luz-2536fa4937f0283b4187142cc6cede8e1dbfafa8.tar.bz2 luz-2536fa4937f0283b4187142cc6cede8e1dbfafa8.zip |
WIP: mess
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/encrypted.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/encrypted.rs b/src/client/encrypted.rs index 03ae295..47b2b2c 100644 --- a/src/client/encrypted.rs +++ b/src/client/encrypted.rs @@ -1,8 +1,7 @@ -use std::str; +use std::{collections::BTreeMap, str}; use quick_xml::{ events::{BytesDecl, Event}, - name::QName, Reader, Writer, }; use rsasl::prelude::{Mechname, SASLClient}; @@ -53,7 +52,9 @@ impl<'j> JabberClient<'j> { .write_event_async(Event::Decl(declaration)) .await; let stream_element: Element<'_> = stream_element.into(); - stream_element.write_start(&mut self.writer).await?; + stream_element + .write_start(&mut self.writer, &BTreeMap::new()) + .await?; // server to client let mut buf = Vec::new(); self.reader.read_event_into_async(&mut buf).await?; |