From 0f9f22935973fa6458af6a5c0579e4cc458957e0 Mon Sep 17 00:00:00 2001 From: Noah Kennedy Date: Fri, 20 Oct 2023 14:56:23 -0500 Subject: [PATCH] feedback --- tokio/src/io/async_fd.rs | 2 +- tokio/src/net/tcp/listener.rs | 2 +- tokio/src/net/unix/listener.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tokio/src/io/async_fd.rs b/tokio/src/io/async_fd.rs index b1dbfedf7..e7ef15053 100644 --- a/tokio/src/io/async_fd.rs +++ b/tokio/src/io/async_fd.rs @@ -254,7 +254,7 @@ impl AsyncFd { /// [unstable]: crate#unstable-features #[track_caller] #[cfg(all(target_os = "linux", tokio_unstable))] - #[cfg_attr(docsrs, doc(cfg(tokio_unstable)), doc(cfg(target_os = "linux")))] + #[cfg_attr(docsrs, doc(cfg(all(tokio_unstable, target_os = "linux"))))] pub fn with_epoll_flags(inner: T, flags: u32) -> io::Result where T: AsRawFd, diff --git a/tokio/src/net/tcp/listener.rs b/tokio/src/net/tcp/listener.rs index f727d7a37..e455c76bc 100644 --- a/tokio/src/net/tcp/listener.rs +++ b/tokio/src/net/tcp/listener.rs @@ -251,7 +251,7 @@ impl TcpListener { /// [unstable]: crate#unstable-features #[track_caller] #[cfg(all(target_os = "linux", tokio_unstable))] - #[cfg_attr(docsrs, doc(cfg(tokio_unstable)), doc(cfg(target_os = "linux")))] + #[cfg_attr(docsrs, doc(cfg(all(tokio_unstable, target_os = "linux"))))] pub fn from_std_with_epoll_flags( listener: net::TcpListener, flags: u32, diff --git a/tokio/src/net/unix/listener.rs b/tokio/src/net/unix/listener.rs index a7722ee38..380c1e4ed 100644 --- a/tokio/src/net/unix/listener.rs +++ b/tokio/src/net/unix/listener.rs @@ -125,7 +125,7 @@ impl UnixListener { /// [unstable]: crate#unstable-features #[track_caller] #[cfg(all(target_os = "linux", tokio_unstable))] - #[cfg_attr(docsrs, doc(cfg(tokio_unstable)), doc(cfg(target_os = "linux")))] + #[cfg_attr(docsrs, doc(cfg(all(tokio_unstable, target_os = "linux"))))] pub fn from_std_with_epoll_flags( listener: net::UnixListener, flags: u32,