Skip to content

Commit

Permalink
Remove an unnecessary cast from aio_suspend's doc test
Browse files Browse the repository at this point in the history
Reported by: @SteveLauC
  • Loading branch information
asomers committed May 15, 2024
1 parent 0c08f39 commit 18985cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ pub fn aio_cancel_all<F: AsFd>(fd: F) -> Result<AioCancelStat> {
/// SigevNotify::SigevNone));
/// aiocb.as_mut().submit().unwrap();
/// aio_suspend(&[&*aiocb], None).expect("aio_suspend failed");
/// assert_eq!(aiocb.as_mut().aio_return().unwrap() as usize, WBUF.len());
/// assert_eq!(aiocb.as_mut().aio_return().unwrap(), WBUF.len());
/// ```
/// # References
///
Expand Down

0 comments on commit 18985cf

Please sign in to comment.