Put Future trait into spotlight

This commit is contained in:
Stjepan Glavina 2019-02-20 21:59:13 +01:00
parent f66e4697ae
commit 102436d16a

View File

@ -24,6 +24,7 @@
///
/// When using a future, you generally won't call `poll` directly, but instead
/// `await!` the value.
#[doc(spotlight)]
#[must_use = "futures do nothing unless polled"]
pub trait Future {
/// The type of value produced on completion.