From 7060055725f81a4af8c2c836b08ad20baa111381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Flores?= Date: Thu, 19 Sep 2024 19:47:17 +0200 Subject: [PATCH 1/2] Update lib.rs binding in the solution The binding is never used, we avoid a warning. --- exercises/08_futures/03_runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/08_futures/03_runtime/src/lib.rs b/exercises/08_futures/03_runtime/src/lib.rs index 3edaa34c8..ab2aa2ca2 100644 --- a/exercises/08_futures/03_runtime/src/lib.rs +++ b/exercises/08_futures/03_runtime/src/lib.rs @@ -24,7 +24,7 @@ where { loop { let (mut socket, _) = listener.accept().await.unwrap(); - let (mut reader, mut writer) = socket.split(); + let (mut _reader, mut writer) = socket.split(); writer .write_all(format!("{}", reply).as_bytes()) .await From c0aebd314872ae0177198088e930f5dd1b60c6a7 Mon Sep 17 00:00:00 2001 From: Henk Oordt Date: Mon, 14 Oct 2024 10:24:42 +0200 Subject: [PATCH 2/2] Remove mut keyword for unused variable in exercises/08_futures/03_runtime/src/lib.rs --- exercises/08_futures/03_runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/08_futures/03_runtime/src/lib.rs b/exercises/08_futures/03_runtime/src/lib.rs index ab2aa2ca2..5201a2bd9 100644 --- a/exercises/08_futures/03_runtime/src/lib.rs +++ b/exercises/08_futures/03_runtime/src/lib.rs @@ -24,7 +24,7 @@ where { loop { let (mut socket, _) = listener.accept().await.unwrap(); - let (mut _reader, mut writer) = socket.split(); + let (_reader, mut writer) = socket.split(); writer .write_all(format!("{}", reply).as_bytes()) .await