mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
Add descriptions of #[must_use] in Storage
This commit is contained in:
parent
617c861d26
commit
44956a4f85
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ pub trait Storage<D> {
|
||||||
type Error;
|
type Error;
|
||||||
|
|
||||||
/// Removes a dialogue indexed by `chat_id`.
|
/// Removes a dialogue indexed by `chat_id`.
|
||||||
#[must_use]
|
#[must_use = "You must .await it as futures are lazy"]
|
||||||
fn remove_dialogue(
|
fn remove_dialogue(
|
||||||
self: Arc<Self>,
|
self: Arc<Self>,
|
||||||
chat_id: i64,
|
chat_id: i64,
|
||||||
|
@ -52,7 +52,7 @@ pub trait Storage<D> {
|
||||||
D: Send + 'static;
|
D: Send + 'static;
|
||||||
|
|
||||||
/// Updates a dialogue indexed by `chat_id` with `dialogue`.
|
/// Updates a dialogue indexed by `chat_id` with `dialogue`.
|
||||||
#[must_use]
|
#[must_use = "You must .await it as futures are lazy"]
|
||||||
fn update_dialogue(
|
fn update_dialogue(
|
||||||
self: Arc<Self>,
|
self: Arc<Self>,
|
||||||
chat_id: i64,
|
chat_id: i64,
|
||||||
|
@ -62,7 +62,7 @@ pub trait Storage<D> {
|
||||||
D: Send + 'static;
|
D: Send + 'static;
|
||||||
|
|
||||||
/// Provides a dialogue indexed by `chat_id`.
|
/// Provides a dialogue indexed by `chat_id`.
|
||||||
#[must_use]
|
#[must_use = "You must .await it as futures are lazy"]
|
||||||
fn get_dialogue(
|
fn get_dialogue(
|
||||||
self: Arc<Self>,
|
self: Arc<Self>,
|
||||||
chat_id: i64,
|
chat_id: i64,
|
||||||
|
|
Loading…
Add table
Reference in a new issue