drowned out clippy
@@ -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 {
