diff --git a/src/monitor.rs b/src/monitor.rs index 0e7b5bb..96221ab 100644 --- a/src/monitor.rs +++ b/src/monitor.rs @@ -230,7 +230,7 @@ impl Response { fn write_all + 'static + Send>( sock: TcpStream, t: T ) -> Self { - Self(Box::new(write_all(sock, t).map(|_| ()))) + Response(Box::new(write_all(sock, t).map(|_| ()))) } }