net: Pass SocketAddr by value (#3125)

This commit is contained in:
Nylonicious
2020-12-10 14:58:27 -05:00
committed by GitHub
parent 4b1d76ec8f
commit 16c2e0983c
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ impl<I, C: Encoder<I> + Unpin> Sink<(I, SocketAddr)> for UdpFramed<C> {
..
} = *self;
let n = ready!(socket.poll_send_to(cx, &wr, &out_addr))?;
let n = ready!(socket.poll_send_to(cx, &wr, *out_addr))?;
let wrote_all = n == self.wr.len();
self.wr.clear();