aboutsummaryrefslogtreecommitdiffstats
path: root/stanza/src/sasl.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stanza/src/sasl.rs (renamed from src/stanza/sasl.rs)6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/stanza/sasl.rs b/stanza/src/sasl.rs
index ec6f63c..0a3f06f 100644
--- a/src/stanza/sasl.rs
+++ b/stanza/src/sasl.rs
@@ -4,7 +4,6 @@ use peanuts::{
element::{FromElement, IntoElement},
DeserializeError, Element,
};
-use tracing::debug;
pub const XMLNS: &str = "urn:ietf:params:xml:ns:xmpp-sasl";
@@ -17,15 +16,11 @@ impl FromElement for Mechanisms {
fn from_element(mut element: Element) -> peanuts::element::DeserializeResult<Self> {
element.check_name("mechanisms")?;
element.check_namespace(XMLNS)?;
- debug!("getting mechanisms");
let mechanisms: Vec<Mechanism> = element.pop_children()?;
- debug!("gottting mechanisms");
let mechanisms = mechanisms
.into_iter()
.map(|Mechanism(mechanism)| mechanism)
.collect();
- debug!("gottting mechanisms");
-
Ok(Mechanisms { mechanisms })
}
}
@@ -135,7 +130,6 @@ pub enum ServerResponse {
impl FromElement for ServerResponse {
fn from_element(element: Element) -> peanuts::element::DeserializeResult<Self> {
- debug!("identification: {:?}", element.identify());
match element.identify() {
(Some(XMLNS), "challenge") => {
Ok(ServerResponse::Challenge(Challenge::from_element(element)?))