diff options
author | 2023-01-27 02:17:42 +0100 | |
---|---|---|
committer | 2023-01-27 02:17:42 +0100 | |
commit | 818ae4977a36c30a61492f85afa96e261c5d7167 (patch) | |
tree | 787b0bbc87522e4d4cda6a3f54a5382ce7896ab6 /futures/src/command.rs | |
parent | 2dea5fe058f825db1a03cfce1fa84efbcb46a906 (diff) | |
parent | 2e4aefa7fc19e4d66152332d28baafe1349c1636 (diff) | |
download | iced-818ae4977a36c30a61492f85afa96e261c5d7167.tar.gz iced-818ae4977a36c30a61492f85afa96e261c5d7167.tar.bz2 iced-818ae4977a36c30a61492f85afa96e261c5d7167.zip |
Merge pull request #1676 from ids1024/must_use
Annotate `Command` and `Subscription` with `#[must_use]`
Diffstat (limited to 'futures/src/command.rs')
-rw-r--r-- | futures/src/command.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/futures/src/command.rs b/futures/src/command.rs index 05c3a1d0..3d1ec3f9 100644 --- a/futures/src/command.rs +++ b/futures/src/command.rs @@ -1,4 +1,5 @@ /// A set of asynchronous actions to be performed by some runtime. +#[must_use = "`Command` must be returned to runtime to take effect"] #[derive(Debug)] pub struct Command<T>(Internal<T>); |