Cargo fmt

This commit is contained in:
Tim Kuehn
2017-01-22 20:01:22 -08:00
parent 45fa4c7bf1
commit 3196fd91ff
5 changed files with 16 additions and 18 deletions

View File

@@ -77,8 +77,7 @@ fn bench_tcp(target: u64) {
let addr = l.local_addr().unwrap();
thread::spawn(move || {
let (mut stream, _) = l.accept().unwrap();
while let Ok(_) = stream.write_all(&*BUF) {
}
while let Ok(_) = stream.write_all(&*BUF) {}
});
let mut stream = net::TcpStream::connect(&addr).unwrap();
let mut buf = vec![0; CHUNK_SIZE as usize];