Bump dependencies (#289)

This commit is contained in:
Bastien Orivel
2018-01-02 12:03:54 -06:00
committed by Alex Crichton
parent 943cd860cb
commit b395ccb6d9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ fn compress(socket: TcpStream, pool: &CpuPool)
// done to ensure that all gz footers are written.
let (read, write) = socket.split();
let write = Count { io: write, amt: 0 };
let write = GzEncoder::new(write, flate2::Compression::Best);
let write = GzEncoder::new(write, flate2::Compression::best());
let process = io::copy(read, write).and_then(|(amt, _read, write)| {
io::shutdown(write).map(move |io| (amt, io.get_ref().amt))
});