From c6108e574dfe91811193d495cbde7cc2dda36625 Mon Sep 17 00:00:00 2001 From: Martin Hoffmann Date: Tue, 12 Feb 2019 13:48:14 +0100 Subject: [PATCH] Compatibility with Rust 1.30. --- src/monitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(|_| ()))) } }