diff options
| -rw-r--r-- | futures/src/subscription.rs | 2 | ||||
| -rw-r--r-- | runtime/src/task.rs | 1 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/futures/src/subscription.rs b/futures/src/subscription.rs index 8067c259..eaea1a1f 100644 --- a/futures/src/subscription.rs +++ b/futures/src/subscription.rs @@ -113,7 +113,7 @@ pub type Hasher = rustc_hash::FxHasher;  /// ```  ///  /// [`Future`]: std::future::Future -#[must_use = "`Subscription` must be returned to runtime to take effect"] +#[must_use = "`Subscription` must be returned to the runtime to take effect; normally in your `subscription` function."]  pub struct Subscription<T> {      recipes: Vec<Box<dyn Recipe<Output = T>>>,  } diff --git a/runtime/src/task.rs b/runtime/src/task.rs index ec8d7cc7..3f97d134 100644 --- a/runtime/src/task.rs +++ b/runtime/src/task.rs @@ -14,6 +14,7 @@ use std::future::Future;  ///  /// A [`Task`] _may_ produce a bunch of values of type `T`.  #[allow(missing_debug_implementations)] +#[must_use = "`Task` must be returned to the runtime to take effect; normally in your `update` or `new` functions."]  pub struct Task<T>(Option<BoxStream<Action<T>>>);  impl<T> Task<T> { | 
