diff options
author | Nylonicious <50183564+nylonicious@users.noreply.github.com> | 2020-12-10 20:58:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 14:58:27 -0500 |
commit | 16c2e0983cc0ab22f9a0b7a1ac37ea32a42b9a6e (patch) | |
tree | d46d58a79f31dba872aa060ef378743fcedea70e /tokio-util/src/udp/frame.rs | |
parent | 4b1d76ec8f35052480eb14204d147df658bfdfdd (diff) |
net: Pass SocketAddr by value (#3125)
Diffstat (limited to 'tokio-util/src/udp/frame.rs')
-rw-r--r-- | tokio-util/src/udp/frame.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio-util/src/udp/frame.rs b/tokio-util/src/udp/frame.rs index 19891058..249acb70 100644 --- a/tokio-util/src/udp/frame.rs +++ b/tokio-util/src/udp/frame.rs @@ -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(); |