mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
add #[must_use] to more futures and streams (#1309)
This commit is contained in:
@@ -65,7 +65,7 @@ use std::time::{Duration, Instant};
|
||||
///
|
||||
/// [`Error`]: struct.Error.html
|
||||
/// [`Timeout::into_inner`]: struct.Timeout.html#method.into_iter
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
#[must_use = "futures do nothing unless you `.await` or poll them"]
|
||||
#[derive(Debug)]
|
||||
pub struct Timeout<T> {
|
||||
value: T,
|
||||
|
||||
Reference in New Issue
Block a user