From ee597347c5e612611142ece09c79e55f2d243590 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 9 Oct 2020 09:16:42 -0700 Subject: net: switch socket methods to &self (#2934) Switches various socket methods from &mut self to &self. This uses the intrusive waker infrastructure to handle multiple waiters. Refs: #2928 --- tokio/tests/uds_datagram.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tokio/tests/uds_datagram.rs') diff --git a/tokio/tests/uds_datagram.rs b/tokio/tests/uds_datagram.rs index 18dfcca0..ec2f6f82 100644 --- a/tokio/tests/uds_datagram.rs +++ b/tokio/tests/uds_datagram.rs @@ -78,7 +78,7 @@ async fn try_send_recv_never_block() -> io::Result<()> { let payload = b"PAYLOAD"; let mut count = 0; - let (mut dgram1, mut dgram2) = UnixDatagram::pair()?; + let (dgram1, dgram2) = UnixDatagram::pair()?; // Send until we hit the OS `net.unix.max_dgram_qlen`. loop { -- cgit v1.2.3