Skip to content

Commit 7fe9731

Browse files
committed
bugfix: Fix check_cfg warning on nightly
Signed-off-by: John Nunley <[email protected]>
1 parent e740947 commit 7fe9731

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ keywords = ["mio", "epoll", "kqueue", "iocp"]
1414
categories = ["asynchronous", "network-programming", "os"]
1515
exclude = ["/.*"]
1616

17+
[lints.rust]
18+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(polling_test_poll_backend)'] }
19+
1720
[[bench]]
1821
name = "io"
1922
harness = false

src/os/unix.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//! Functionality that is only available for `unix` platforms.
22
3-
#[cfg(not(async_io_no_io_safety))]
43
use std::os::unix::io::BorrowedFd;
54

65
/// Get a file descriptor that can be used to wait for readiness in an external runtime.
@@ -41,7 +40,6 @@ use std::os::unix::io::BorrowedFd;
4140
/// # pub fn register(_: BorrowedFd<'_>) {}
4241
/// # }
4342
/// ```
44-
#[cfg(not(async_io_no_io_safety))]
4543
pub fn reactor_fd() -> Option<BorrowedFd<'static>> {
4644
cfg_if::cfg_if! {
4745
if #[cfg(all(

0 commit comments

Comments
 (0)