From 44956a4f858396154d6058535ee5a8d7c3baccd3 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Sat, 3 Apr 2021 13:28:26 +0600 Subject: [PATCH] Add descriptions of #[must_use] in Storage --- src/dispatching/dialogue/storage/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dispatching/dialogue/storage/mod.rs b/src/dispatching/dialogue/storage/mod.rs index 4dc3165c..cfcf7853 100644 --- a/src/dispatching/dialogue/storage/mod.rs +++ b/src/dispatching/dialogue/storage/mod.rs @@ -43,7 +43,7 @@ pub trait Storage { type Error; /// Removes a dialogue indexed by `chat_id`. - #[must_use] + #[must_use = "You must .await it as futures are lazy"] fn remove_dialogue( self: Arc, chat_id: i64, @@ -52,7 +52,7 @@ pub trait Storage { D: Send + 'static; /// Updates a dialogue indexed by `chat_id` with `dialogue`. - #[must_use] + #[must_use = "You must .await it as futures are lazy"] fn update_dialogue( self: Arc, chat_id: i64, @@ -62,7 +62,7 @@ pub trait Storage { D: Send + 'static; /// Provides a dialogue indexed by `chat_id`. - #[must_use] + #[must_use = "You must .await it as futures are lazy"] fn get_dialogue( self: Arc, chat_id: i64,