mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Set Future types as must_use
This commit is contained in:
@@ -9,6 +9,7 @@ use futures::{Poll, Future};
|
||||
/// Created by the [`read_exact`] function.
|
||||
///
|
||||
/// [`read_exact`]: fn.read_exact.html
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
pub struct ReadExact<A, T> {
|
||||
state: State<A, T>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user