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};
|
||||
|
||||
/// This object defines the criteria used to request a suitable chat.
|
||||
///
|
||||
///
|
||||
/// 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
|
||||
/// the chat if appropriate. [More about requesting chats »]
|
||||
|
|
|
@ -3,6 +3,8 @@ use serde::{Deserialize, Serialize};
|
|||
use crate::types::RequestId;
|
||||
|
||||
/// This object defines the criteria used to request a suitable users.
|
||||
///
|
||||
///
|
||||
/// Information about the selected users will be shared with the bot when the
|
||||
/// corresponding button is pressed. More about requesting users »
|
||||
///
|
||||
|
|
|
@ -53,9 +53,6 @@ impl Future for StopFlag {
|
|||
type Output = ();
|
||||
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut task::Context<'_>) -> task::Poll<Self::Output> {
|
||||
self.project().0.poll(cx).map(|res| match res {
|
||||
Err(_aborted) => (),
|
||||
Ok(unreachable) => match unreachable {},
|
||||
})
|
||||
self.project().0.poll(cx).map(|_res| ())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue