From 67c346f88e5388eb8242c70a7970670a0ed1de21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Thu, 13 Aug 2020 00:53:02 +0200 Subject: [PATCH] aquatic_http_load_test: fix compiler unused variable warnings --- aquatic_http_load_test/src/network.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/aquatic_http_load_test/src/network.rs b/aquatic_http_load_test/src/network.rs index dc40c7c..92a29c0 100644 --- a/aquatic_http_load_test/src/network.rs +++ b/aquatic_http_load_test/src/network.rs @@ -115,11 +115,9 @@ impl Connection { Err(err) if err.kind() == ErrorKind::WouldBlock => { break false; }, - Err(err) => { + Err(_) => { self.bytes_read = 0; - // eprintln!("handle_read_event error: {}", err); - break true; } } @@ -155,9 +153,7 @@ impl Connection { false }, - Err(err) => { - // eprintln!("send request error: {}", err); - + Err(_) => { true } }