From 3e45100f5d0a6b664cff01d6ad9d9ebff7e2beab Mon Sep 17 00:00:00 2001 From: Florian Uekermann Date: Sat, 23 Oct 2021 00:03:09 +0200 Subject: [PATCH] replace unwrap with ? --- src/handshake/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handshake/server.rs b/src/handshake/server.rs index 5f86c91..2f095ce 100644 --- a/src/handshake/server.rs +++ b/src/handshake/server.rs @@ -103,7 +103,7 @@ fn write_response(mut w: impl io::Write, response: &HttpResponse) -> Resul )?; for (k, v) in response.headers() { - writeln!(w, "{}: {}\r", k, v.to_str()?).unwrap(); + writeln!(w, "{}: {}\r", k, v.to_str()?)?; } writeln!(w, "\r")?;