summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/encrypted.rs7
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?;