remove bytes deserializer
This commit is contained in:
parent
6a5e39c60a
commit
c0a7116eef
|
@ -89,7 +89,6 @@ impl<'j> JabberClient<'j> {
|
||||||
let decoded = str::from_utf8(&txt).unwrap();
|
let decoded = str::from_utf8(&txt).unwrap();
|
||||||
println!("decoded: {:?}", decoded);
|
println!("decoded: {:?}", decoded);
|
||||||
let mut deserializer = Deserializer::from_str(decoded);
|
let mut deserializer = Deserializer::from_str(decoded);
|
||||||
// let mut deserializer = Deserializer::from_str(txt);
|
|
||||||
let features = StreamFeatures::deserialize(&mut deserializer).unwrap();
|
let features = StreamFeatures::deserialize(&mut deserializer).unwrap();
|
||||||
println!("{:?}", features);
|
println!("{:?}", features);
|
||||||
Ok(features.features)
|
Ok(features.features)
|
||||||
|
|
Loading…
Reference in New Issue