diff options
author | Haibo Huang <hhb@google.com> | 2020-11-16 17:42:39 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2020-11-16 17:42:39 -0800 |
commit | b871bf78acdb643f7b39ac9d1110ab94d886d7d1 (patch) | |
tree | 9953974f4f90698632f6dcdcb001e8f962af4dbd /src/poll.rs | |
parent | 8414138e74aa469015108049230e70b0a325c6e9 (diff) | |
download | mio-b871bf78acdb643f7b39ac9d1110ab94d886d7d1.tar.gz |
Upgrade rust/crates/mio to 0.7.6
Test: make
Change-Id: I26de17b65a22ec1ba472a61c51b55681afdb8ffa
Diffstat (limited to 'src/poll.rs')
-rw-r--r-- | src/poll.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/poll.rs b/src/poll.rs index 7ff2038..b06f138 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -30,7 +30,8 @@ use std::{fmt, io}; /// /// A basic example -- establishing a `TcpStream` connection. /// -/// ``` +#[cfg_attr(all(feature = "os-poll", features = "net"), doc = "```")] +#[cfg_attr(not(all(feature = "os-poll", features = "net")), doc = "```ignore")] /// # use std::error::Error; /// # fn main() -> Result<(), Box<dyn Error>> { /// use mio::{Events, Poll, Interest, Token}; @@ -126,7 +127,8 @@ use std::{fmt, io}; /// /// For example: /// -/// ``` +#[cfg_attr(all(feature = "os-poll", features = "net"), doc = "```")] +#[cfg_attr(not(all(feature = "os-poll", features = "net")), doc = "```ignore")] /// # use std::error::Error; /// # use std::net; /// # fn main() -> Result<(), Box<dyn Error>> { @@ -258,7 +260,8 @@ impl Poll { /// /// A basic example -- establishing a `TcpStream` connection. /// - /// ``` + #[cfg_attr(all(feature = "os-poll", features = "net"), doc = "```")] + #[cfg_attr(not(all(feature = "os-poll", features = "net")), doc = "```ignore")] /// # use std::error::Error; /// # fn main() -> Result<(), Box<dyn Error>> { /// use mio::{Events, Poll, Interest, Token}; @@ -422,7 +425,8 @@ impl Registry { /// /// # Examples /// - /// ``` + #[cfg_attr(all(feature = "os-poll", features = "net"), doc = "```")] + #[cfg_attr(not(all(feature = "os-poll", features = "net")), doc = "```ignore")] /// # use std::error::Error; /// # use std::net; /// # fn main() -> Result<(), Box<dyn Error>> { @@ -499,7 +503,8 @@ impl Registry { /// /// # Examples /// - /// ``` + #[cfg_attr(all(feature = "os-poll", features = "net"), doc = "```")] + #[cfg_attr(not(all(feature = "os-poll", features = "net")), doc = "```ignore")] /// # use std::error::Error; /// # use std::net; /// # fn main() -> Result<(), Box<dyn Error>> { @@ -565,7 +570,8 @@ impl Registry { /// /// # Examples /// - /// ``` + #[cfg_attr(all(feature = "os-poll", features = "net"), doc = "```")] + #[cfg_attr(not(all(feature = "os-poll", features = "net")), doc = "```ignore")] /// # use std::error::Error; /// # use std::net; /// # fn main() -> Result<(), Box<dyn Error>> { |