Skip to content

Commit 8a3a15b

Browse files
committed
No warnings on non-unstable
1 parent c8f1e20 commit 8a3a15b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/net/driver/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ impl Reactor {
9898
}
9999

100100
/// Deregisters an I/O event source associated with a file descriptor.
101+
#[cfg(feature = "unstable")]
101102
pub fn deregister_fd(&self, source: &dyn Evented, fd: c_int) -> io::Result<()> {
102103
// Deregister the I/O object from the mio instance.
103104
self.poller.deregister(source)?;

src/os/unix/io.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
//! Unix-specific I/O extensions.
22
3-
use crate::task::Context;
4-
use crate::io;
53

64
cfg_not_docs! {
75
pub use std::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
6+
7+
#[cfg(feature = "unstable")]
88
use mio::unix::EventedFd;
9+
#[cfg(feature = "unstable")]
910
use crate::net::driver::REACTOR;
11+
#[cfg(feature = "unstable")]
12+
use crate::task::Context;
13+
#[cfg(feature = "unstable")]
14+
use crate::io;
1015

1116
/// Registers an I/O handle so that the current task gets woken up when it becomes ready.
1217
#[cfg(feature = "unstable")]

0 commit comments

Comments
 (0)