Remove remaining dynamic dispatch usage

pull/167/head
Dominik Nakamura 4 years ago
parent 208061ba28
commit 82e09ea025
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910
  1. 2
      src/handshake/server.rs

@ -94,7 +94,7 @@ pub fn create_response_with_body<T>(
}
// Assumes that this is a valid response
fn write_response<T>(w: &mut dyn io::Write, response: &HttpResponse<T>) -> Result<()> {
fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Result<()> {
writeln!(
w,
"{version:?} {status}\r",

Loading…
Cancel
Save