drowned out clippy

This commit is contained in:
p0lunin 2020-06-24 20:54:41 +03:00
parent e336221c7b
commit b9cb494797

View file

@ -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 {