tokio-xmpp: rustfmt

This commit is contained in:
Astro 2020-05-30 00:14:32 +02:00
commit 1e1f593233
9 changed files with 50 additions and 46 deletions

View file

@ -250,7 +250,13 @@ impl Decoder for XMPPCodec {
return result;
}
Err(e) => {
error!("error {} at {}/{} in {:?}", e, e.valid_up_to(), buf1.len(), buf1);
error!(
"error {} at {}/{} in {:?}",
e,
e.valid_up_to(),
buf1.len(),
buf1
);
return Err(ParserError::Utf8(e));
}
}
@ -309,9 +315,7 @@ impl Encoder for XMPPCodec {
Ok(())
})
.map_err(to_io_err),
Packet::StreamEnd =>
write!(dst, "</stream:stream>\n")
.map_err(to_io_err),
Packet::StreamEnd => write!(dst, "</stream:stream>\n").map_err(to_io_err),
}
}
}