From 114f7dfa14530a0197125dfef36d2a385bff5c60 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 19 Sep 2024 23:17:09 +0200 Subject: Add `must_use` attribute to `Task` --- futures/src/subscription.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'futures') 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 { recipes: Vec>>, } -- cgit