Skip to content

Commit

Permalink
Clippy cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed May 14, 2022
1 parent 1ed1c16 commit 003081a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sys/aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl AioCb {
}

fn error(self: Pin<&mut Self>) -> Result<()> {
let r = unsafe { libc::aio_error(&mut self.aiocb().0) };
let r = unsafe { libc::aio_error(&self.aiocb().0) };
match r {
0 => Ok(()),
num if num > 0 => Err(Errno::from_i32(num)),
Expand Down Expand Up @@ -1052,9 +1052,9 @@ pub fn aio_suspend(
list: &[&dyn AsRef<libc::aiocb>],
timeout: Option<TimeSpec>,
) -> Result<()> {
let plist = list as *const [&dyn AsRef<libc::aiocb>]
as *const [*const libc::aiocb];
let p = plist as *const *const libc::aiocb;
let p = list as *const [&dyn AsRef<libc::aiocb>]
as *const [*const libc::aiocb]
as *const *const libc::aiocb;
let timep = match timeout {
None => ptr::null::<libc::timespec>(),
Some(x) => x.as_ref() as *const libc::timespec,
Expand Down Expand Up @@ -1179,9 +1179,9 @@ pub fn lio_listio(
list: &mut [Pin<&mut dyn AsMut<libc::aiocb>>],
sigev_notify: SigevNotify,
) -> Result<()> {
let plist = list as *mut [Pin<&mut dyn AsMut<libc::aiocb>>]
as *mut [*mut libc::aiocb];
let p = plist as *mut *mut libc::aiocb;
let p = list as *mut [Pin<&mut dyn AsMut<libc::aiocb>>]
as *mut [*mut libc::aiocb]
as *mut *mut libc::aiocb;
let sigev = SigEvent::new(sigev_notify);
let sigevp = &mut sigev.sigevent() as *mut libc::sigevent;
Errno::result(unsafe {
Expand Down

0 comments on commit 003081a

Please sign in to comment.