fix clippy warnings

This commit is contained in:
Benjamin Fry
2020-11-10 12:17:44 -08:00
parent 2a42fa6966
commit a516f38b61
5 changed files with 17 additions and 17 deletions

View File

@@ -28,11 +28,11 @@ impl UdpSocket for AsyncStdUdpSocket {
.map(AsyncStdUdpSocket)
}
async fn recv_from(&mut self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> {
async fn recv_from(&self, buf: &mut [u8]) -> io::Result<(usize, SocketAddr)> {
self.0.recv_from(buf).await
}
async fn send_to(&mut self, buf: &[u8], target: &SocketAddr) -> io::Result<usize> {
async fn send_to(&self, buf: &[u8], target: &SocketAddr) -> io::Result<usize> {
self.0.send_to(buf, target).await
}
}