From 2536fa4937f0283b4187142cc6cede8e1dbfafa8 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Fri, 20 Oct 2023 02:34:47 +0100 Subject: WIP: mess --- src/client/encrypted.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/client/encrypted.rs') 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?; -- cgit