tokio-xmpp: rustfmt
This commit is contained in:
parent
537b4825a8
commit
1e1f593233
9 changed files with 50 additions and 46 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue