summaryrefslogtreecommitdiffstats
path: root/tokio/src
diff options
context:
space:
mode:
authorNylonicious <50183564+nylonicious@users.noreply.github.com>2020-12-10 20:58:27 +0100
committerGitHub <noreply@github.com>2020-12-10 14:58:27 -0500
commit16c2e0983cc0ab22f9a0b7a1ac37ea32a42b9a6e (patch)
treed46d58a79f31dba872aa060ef378743fcedea70e /tokio/src
parent4b1d76ec8f35052480eb14204d147df658bfdfdd (diff)
net: Pass SocketAddr by value (#3125)
Diffstat (limited to 'tokio/src')
-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