1
0
mirror of https://github.com/NLnetLabs/routinator.git synced 2024-05-19 06:50:04 +00:00

Compatibility with Rust 1.30.

This commit is contained in:
Martin Hoffmann
2019-02-12 13:48:14 +01:00
parent b2933d5834
commit c6108e574d

View File

@ -230,7 +230,7 @@ impl Response {
fn write_all<T: AsRef<[u8]> + 'static + Send>(
sock: TcpStream, t: T
) -> Self {
Self(Box::new(write_all(sock, t).map(|_| ())))
Response(Box::new(write_all(sock, t).map(|_| ())))
}
}