summaryrefslogtreecommitdiffstats
path: root/tokio/src/net/udp/socket.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/net/udp/socket.rs')
-rw-r--r--tokio/src/net/udp/socket.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/net/udp/socket.rs b/tokio/src/net/udp/socket.rs
index a9c5c868..3775714c 100644
--- a/tokio/src/net/udp/socket.rs
+++ b/tokio/src/net/udp/socket.rs
@@ -745,11 +745,11 @@ impl UdpSocket {
&self,
cx: &mut Context<'_>,
buf: &[u8],
- target: &SocketAddr,
+ target: SocketAddr,
) -> Poll<io::Result<usize>> {
self.io
.registration()
- .poll_write_io(cx, || self.io.send_to(buf, *target))
+ .poll_write_io(cx, || self.io.send_to(buf, target))
}
/// Try to send data on the socket to the given address, but if the send is