Don't unwrap when trying to close the writer half in 08/07
authorLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Thu, 16 May 2024 13:32:27 +0000 (15:32 +0200)
committerLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Thu, 16 May 2024 13:32:27 +0000 (15:32 +0200)
exercises/08_futures/07_cancellation/src/lib.rs

index 20e914d..f62301e 100644 (file)
@@ -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();