From 5d68ad85ed8f1195ee4ea61ed0c14ba1c82ccb1d Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 24 Jan 2022 12:00:22 +1100 Subject: [PATCH] Remove unneeded return statement The last statement of a function does not need an explicit `return` statement. --- src/network/stream_reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/stream_reader.rs b/src/network/stream_reader.rs index 8e0f67d7..665e3268 100644 --- a/src/network/stream_reader.rs +++ b/src/network/stream_reader.rs @@ -222,7 +222,7 @@ mod test { let istream = TcpStream::connect(format!("127.0.0.1:{}", port)).unwrap(); let reader = BufReader::new(istream); - return (handle, reader) + (handle, reader) } #[test]