Merge pull request #167 from dnaka91/remove-dyn-dispatch

Remove remaining dynamic dispatch usage
pull/170/head
Daniel Abramov 4 years ago committed by GitHub
commit 06e5689cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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