From 329f661d1e4fdbcd7b0f632c32050d1c58e1eac6 Mon Sep 17 00:00:00 2001 From: Ryan Zoeller Date: Wed, 22 Dec 2021 13:30:14 -0600 Subject: [PATCH] Fix clippy warning on latest nightly --- src/sys/aio.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sys/aio.rs b/src/sys/aio.rs index 856becb8e1..4780cdee33 100644 --- a/src/sys/aio.rs +++ b/src/sys/aio.rs @@ -1065,6 +1065,7 @@ impl<'a> LioCbBuilder<'a> { /// /// [`LioCb`]: struct.LioCb.html /// [`AioCb::from_slice`]: struct.AioCb.html#method.from_slice + #[must_use] pub fn emplace_slice(mut self, fd: RawFd, offs: off_t, buf: &'a [u8], prio: libc::c_int, sigev_notify: SigevNotify, opcode: LioOpcode) -> Self @@ -1081,6 +1082,7 @@ impl<'a> LioCbBuilder<'a> { /// /// [`LioCb`]: struct.LioCb.html /// [`AioCb::from_mut_slice`]: struct.AioCb.html#method.from_mut_slice + #[must_use] pub fn emplace_mut_slice(mut self, fd: RawFd, offs: off_t, buf: &'a mut [u8], prio: libc::c_int, sigev_notify: SigevNotify, opcode: LioOpcode)