1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-30 20:04:26 +02:00

clippy warnings

This commit is contained in:
Nikolay Kim
2018-04-09 14:25:30 -07:00
parent be358db422
commit e757dc5a71
7 changed files with 29 additions and 29 deletions

View File

@ -718,7 +718,7 @@ impl TransferEncoding {
self.buffer.extend_from_slice(b"0\r\n\r\n");
} else {
let mut buf = BytesMut::new();
write!(&mut buf, "{:X}\r\n", msg.len())
writeln!(&mut buf, "{:X}\r", msg.len())
.map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
self.buffer.reserve(buf.len() + msg.len() + 2);
self.buffer.extend(buf.into());