mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
drowned out clippy
This commit is contained in:
parent
e336221c7b
commit
b9cb494797
1 changed files with 8 additions and 0 deletions
|
@ -389,6 +389,8 @@ mod getters {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: rewrite to nested patterns after stabilize
|
||||
#[allow(clippy::unnested_or_patterns)]
|
||||
pub fn forward_date(&self) -> Option<&i32> {
|
||||
match &self.kind {
|
||||
Common {
|
||||
|
@ -418,6 +420,8 @@ mod getters {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: rewrite to nested patterns after stabilize
|
||||
#[allow(clippy::unnested_or_patterns)]
|
||||
pub fn media_group_id(&self) -> Option<&str> {
|
||||
match &self.kind {
|
||||
Common { media_kind: Video { media_group_id, .. }, .. }
|
||||
|
@ -448,6 +452,8 @@ mod getters {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: rewrite to nested patterns after stabilize
|
||||
#[allow(clippy::unnested_or_patterns)]
|
||||
pub fn caption_entities(&self) -> Option<&[MessageEntity]> {
|
||||
match &self.kind {
|
||||
Common {
|
||||
|
@ -723,6 +729,8 @@ mod getters {
|
|||
}
|
||||
|
||||
impl Message {
|
||||
// TODO: rewrite to nested patterns after stabilize
|
||||
#[allow(clippy::unnested_or_patterns)]
|
||||
pub fn url(&self) -> Option<reqwest::Url> {
|
||||
match &self.chat.kind {
|
||||
ChatKind::NonPrivate {
|
||||
|
|
Loading…
Reference in a new issue