Skip to content

Commit

Permalink
remove trailing test wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed May 9, 2021
1 parent a077bb6 commit d15b65d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions tokio/src/signal/unix.rs
Expand Up @@ -430,7 +430,6 @@ impl Signal {
/// Polling from a manually implemented future
///
/// ```rust,no_run
/// # #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> {
/// use std::future::Future;
/// use std::pin::Pin;
/// use std::task::{Context, Poll};
Expand All @@ -448,7 +447,6 @@ impl Signal {
/// self.signal.poll_recv(cx)
/// }
/// }
/// # Ok(()) }
/// ```
pub fn poll_recv(&mut self, cx: &mut Context<'_>) -> Poll<Option<()>> {
self.inner.poll_recv(cx)
Expand Down
4 changes: 0 additions & 4 deletions tokio/src/signal/windows.rs
Expand Up @@ -210,7 +210,6 @@ impl CtrlC {
/// Polling from a manually implemented future
///
/// ```rust,no_run
/// # #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> {
/// use std::future::Future;
/// use std::pin::Pin;
/// use std::task::{Context, Poll};
Expand All @@ -228,7 +227,6 @@ impl CtrlC {
/// self.ctrl_c.poll_recv(cx)
/// }
/// }
/// # Ok(()) }
/// ```
pub fn poll_recv(&mut self, cx: &mut Context<'_>) -> Poll<Option<()>> {
self.inner.inner.poll_recv(cx)
Expand Down Expand Up @@ -283,7 +281,6 @@ impl CtrlBreak {
/// Polling from a manually implemented future
///
/// ```rust,no_run
/// # #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> {
/// use std::pin::Pin;
/// use std::future::Future;
/// use std::task::{Context, Poll};
Expand All @@ -301,7 +298,6 @@ impl CtrlBreak {
/// self.ctrl_break.poll_recv(cx)
/// }
/// }
/// # Ok(()) }
/// ```
pub fn poll_recv(&mut self, cx: &mut Context<'_>) -> Poll<Option<()>> {
self.inner.inner.poll_recv(cx)
Expand Down

0 comments on commit d15b65d

Please sign in to comment.