mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix code according to clippy
This commit is contained in:
parent
720c8b2c5f
commit
2ba8bb8d34
1 changed files with 4 additions and 16 deletions
|
@ -1101,10 +1101,7 @@ mod getters {
|
||||||
/// [More on this](https://core.telegram.org/bots/api#message)
|
/// [More on this](https://core.telegram.org/bots/api#message)
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn is_delete_chat_photo(&self) -> bool {
|
pub fn is_delete_chat_photo(&self) -> bool {
|
||||||
match &self.kind {
|
matches!(&self.kind, DeleteChatPhoto(..))
|
||||||
DeleteChatPhoto(..) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
@ -1121,10 +1118,7 @@ mod getters {
|
||||||
/// [More on this](https://core.telegram.org/bots/api#message)
|
/// [More on this](https://core.telegram.org/bots/api#message)
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn is_group_chat_created(&self) -> bool {
|
pub fn is_group_chat_created(&self) -> bool {
|
||||||
match &self.kind {
|
matches!(&self.kind, GroupChatCreated(..))
|
||||||
GroupChatCreated(..) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
@ -1141,10 +1135,7 @@ mod getters {
|
||||||
/// [More on this](https://core.telegram.org/bots/api#message)
|
/// [More on this](https://core.telegram.org/bots/api#message)
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn is_super_group_chat_created(&self) -> bool {
|
pub fn is_super_group_chat_created(&self) -> bool {
|
||||||
match &self.kind {
|
matches!(&self.kind, SupergroupChatCreated(..))
|
||||||
SupergroupChatCreated(..) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
@ -1163,10 +1154,7 @@ mod getters {
|
||||||
/// [More on this](https://core.telegram.org/bots/api#message)
|
/// [More on this](https://core.telegram.org/bots/api#message)
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn is_channel_chat_created(&self) -> bool {
|
pub fn is_channel_chat_created(&self) -> bool {
|
||||||
match &self.kind {
|
matches!(&self.kind, ChannelChatCreated(..))
|
||||||
ChannelChatCreated(..) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|
Loading…
Reference in a new issue