Skip to content

Commit

Permalink
Remove an unnecessary cast from aio_suspend's doc test (#2405)
Browse files Browse the repository at this point in the history
Reported by: @SteveLauC
  • Loading branch information
asomers authored May 16, 2024
1 parent 0c08f39 commit f577c20
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 f577c20

Please sign in to comment.