mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
fixed clippy errors for rust nightly
This commit is contained in:
parent
4f5dcbf4c2
commit
e96139634d
3 changed files with 5 additions and 4 deletions
|
@ -3,6 +3,8 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::types::{ChatAdministratorRights, RequestId};
|
use crate::types::{ChatAdministratorRights, RequestId};
|
||||||
|
|
||||||
/// This object defines the criteria used to request a suitable chat.
|
/// This object defines the criteria used to request a suitable chat.
|
||||||
|
///
|
||||||
|
///
|
||||||
/// Information about the selected chat will be shared with the bot when the
|
/// Information about the selected chat will be shared with the bot when the
|
||||||
/// corresponding button is pressed. The bot will be granted requested rights in
|
/// corresponding button is pressed. The bot will be granted requested rights in
|
||||||
/// the chat if appropriate. [More about requesting chats »]
|
/// the chat if appropriate. [More about requesting chats »]
|
||||||
|
|
|
@ -3,6 +3,8 @@ use serde::{Deserialize, Serialize};
|
||||||
use crate::types::RequestId;
|
use crate::types::RequestId;
|
||||||
|
|
||||||
/// This object defines the criteria used to request a suitable users.
|
/// This object defines the criteria used to request a suitable users.
|
||||||
|
///
|
||||||
|
///
|
||||||
/// Information about the selected users will be shared with the bot when the
|
/// Information about the selected users will be shared with the bot when the
|
||||||
/// corresponding button is pressed. More about requesting users »
|
/// corresponding button is pressed. More about requesting users »
|
||||||
///
|
///
|
||||||
|
|
|
@ -53,9 +53,6 @@ impl Future for StopFlag {
|
||||||
type Output = ();
|
type Output = ();
|
||||||
|
|
||||||
fn poll(self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> task::Poll<Self::Output> {
|
fn poll(self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> task::Poll<Self::Output> {
|
||||||
self.project().0.poll(cx).map(|res| match res {
|
self.project().0.poll(cx).map(|_res| ())
|
||||||
Err(_aborted) => (),
|
|
||||||
Ok(unreachable) => match unreachable {},
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue