diff --git a/examples/tcp_listenfd_server.rs b/examples/tcp_listenfd_server.rs index 941d7f048..38b10d0ef 100644 --- a/examples/tcp_listenfd_server.rs +++ b/examples/tcp_listenfd_server.rs @@ -125,6 +125,7 @@ fn next(current: &mut Token) -> Token { } /// Returns `true` if the connection is done. +#[allow(clippy::unused_io_amount)] fn handle_connection_event( registry: &Registry, connection: &mut TcpStream, diff --git a/src/sys/unix/waker.rs b/src/sys/unix/waker.rs index 968f1a876..4642996fa 100644 --- a/src/sys/unix/waker.rs +++ b/src/sys/unix/waker.rs @@ -100,6 +100,7 @@ mod eventfd { Ok(WakerInternal { fd: file }) } + #[allow(clippy::unused_io_amount)] pub fn wake(&self) -> io::Result<()> { let buf: [u8; 8] = 1u64.to_ne_bytes(); match (&self.fd).write(&buf) { @@ -120,6 +121,7 @@ mod eventfd { } /// Reset the eventfd object, only need to call this if `wake` fails. + #[allow(clippy::unused_io_amount)] fn reset(&self) -> io::Result<()> { let mut buf: [u8; 8] = 0u64.to_ne_bytes(); match (&self.fd).read(&mut buf) { diff --git a/tests/tcp.rs b/tests/tcp.rs index 2c61403d5..87ef2329d 100644 --- a/tests/tcp.rs +++ b/tests/tcp.rs @@ -584,6 +584,7 @@ fn connect_error() { } #[test] +#[allow(clippy::unused_io_amount)] fn write_error() { init();