mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
Don't unwrap when trying to close the writer half in 08/07
This commit is contained in:
parent
0665cf0b25
commit
17cfa531ba
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue