From 17cfa531ba2a182072dd825ed5386a2dd3bd3543 Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 16 May 2024 15:32:27 +0200 Subject: [PATCH] Don't unwrap when trying to close the writer half in 08/07 --- exercises/08_futures/07_cancellation/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/08_futures/07_cancellation/src/lib.rs b/exercises/08_futures/07_cancellation/src/lib.rs index 20e914d..f62301e 100644 --- a/exercises/08_futures/07_cancellation/src/lib.rs +++ b/exercises/08_futures/07_cancellation/src/lib.rs @@ -41,7 +41,7 @@ mod tests { writer.write_all(end.as_bytes()).await.unwrap(); // Close the write side of the socket - writer.shutdown().await.unwrap(); + let _ = writer.shutdown().await; } let buffered = handle.await.unwrap();