Skip to content

Commit 329f661

Browse files
committed
Fix clippy warning on latest nightly
1 parent 78f2301 commit 329f661

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sys/aio.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ impl<'a> LioCbBuilder<'a> {
10651065
///
10661066
/// [`LioCb`]: struct.LioCb.html
10671067
/// [`AioCb::from_slice`]: struct.AioCb.html#method.from_slice
1068+
#[must_use]
10681069
pub fn emplace_slice(mut self, fd: RawFd, offs: off_t, buf: &'a [u8],
10691070
prio: libc::c_int, sigev_notify: SigevNotify,
10701071
opcode: LioOpcode) -> Self
@@ -1081,6 +1082,7 @@ impl<'a> LioCbBuilder<'a> {
10811082
///
10821083
/// [`LioCb`]: struct.LioCb.html
10831084
/// [`AioCb::from_mut_slice`]: struct.AioCb.html#method.from_mut_slice
1085+
#[must_use]
10841086
pub fn emplace_mut_slice(mut self, fd: RawFd, offs: off_t,
10851087
buf: &'a mut [u8], prio: libc::c_int,
10861088
sigev_notify: SigevNotify, opcode: LioOpcode)

0 commit comments

Comments
 (0)