Fix UDP test

This commit is contained in:
Alex Crichton 2017-10-05 19:57:36 -07:00
parent 1c88b8f336
commit 335c3e73a4

View File

@ -66,7 +66,7 @@ struct Send {}
impl SendFn for Send {
fn send(&self, socket: &UdpSocket, buf: &[u8], addr: &SocketAddr) -> Result<usize, io::Error> {
socket.connect(*addr).expect("could not connect");
socket.connect(addr).expect("could not connect");
socket.send(buf)
}
}