summaryrefslogtreecommitdiffstats
path: root/tokio-util/src/udp/frame.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-util/src/udp/frame.rs')
-rw-r--r--tokio-util/src/udp/frame.rs2
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();