From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 16 May 2024 13:32:27 +0000 (+0200) Subject: Don't unwrap when trying to close the writer half in 08/07 X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=17cfa531ba2a182072dd825ed5386a2dd3bd3543;p=rust_exercises.git Don't unwrap when trying to close the writer half in 08/07 --- 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();