fixed clippy errors for rust nightly

This commit is contained in:
YouKnow 2024-09-04 19:38:53 +03:30
parent 4f5dcbf4c2
commit e96139634d
3 changed files with 5 additions and 4 deletions

View file

@ -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 »]

View file

@ -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 »
///

View file

@ -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| ())
}
}