Skip to content

Commit f577c20

Browse files
authored
Remove an unnecessary cast from aio_suspend's doc test (#2405)
Reported by: @SteveLauC
1 parent 0c08f39 commit f577c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/aio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ pub fn aio_cancel_all<F: AsFd>(fd: F) -> Result<AioCancelStat> {
10471047
/// SigevNotify::SigevNone));
10481048
/// aiocb.as_mut().submit().unwrap();
10491049
/// aio_suspend(&[&*aiocb], None).expect("aio_suspend failed");
1050-
/// assert_eq!(aiocb.as_mut().aio_return().unwrap() as usize, WBUF.len());
1050+
/// assert_eq!(aiocb.as_mut().aio_return().unwrap(), WBUF.len());
10511051
/// ```
10521052
/// # References
10531053
///

0 commit comments

Comments
 (0)