Skip to content

Commit ff4f06f

Browse files
committed
Suppress some deprecation warnings in the doc tests
These cause failures in CI. I can't reproduce them locally and don't know why.
1 parent d26570c commit ff4f06f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sys/aio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,7 @@ pub fn aio_suspend(
10801080
/// This mode is useful for otherwise-synchronous programs that want to execute
10811081
/// a handful of I/O operations in parallel.
10821082
/// ```
1083+
/// # #![allow(deprecated)]
10831084
/// # use std::os::unix::io::AsRawFd;
10841085
/// # use nix::sys::aio::*;
10851086
/// # use nix::sys::signal::SigevNotify;
@@ -1104,6 +1105,7 @@ pub fn aio_suspend(
11041105
/// technique for reducing overall context-switch overhead, especially when
11051106
/// combined with kqueue.
11061107
/// ```
1108+
/// # #![allow(deprecated)]
11071109
/// # use std::os::unix::io::AsRawFd;
11081110
/// # use std::thread;
11091111
/// # use std::time;
@@ -1137,6 +1139,7 @@ pub fn aio_suspend(
11371139
/// In that case, you must check the status of each individual operation, and
11381140
/// possibly resubmit some.
11391141
/// ```
1142+
/// # #![allow(deprecated)]
11401143
/// # use libc::c_int;
11411144
/// # use std::os::unix::io::AsRawFd;
11421145
/// # use std::sync::atomic::{AtomicBool, Ordering};

0 commit comments

Comments
 (0)