replace unwrap with ?

pull/248/head
Florian Uekermann 3 years ago committed by GitHub
parent 951411096d
commit 3e45100f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/handshake/server.rs

@ -103,7 +103,7 @@ fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> 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")?;

Loading…
Cancel
Save