Skip to content

Commit

Permalink
Clippy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Desiders committed Jan 27, 2024
1 parent 5218f72 commit de2d2a9
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 151 deletions.
8 changes: 4 additions & 4 deletions src/types/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct Private {
/// `true`, if the privacy settings of the other party restrict sending voice and video note messages. Returned only in [`GetChat`](crate::methods::GetChat).
pub has_restricted_voice_and_video_messages: Option<bool>,
/// The most recent pinned message (by sending date). Returned only in [`GetChat`](crate::methods::GetChat).
pub pinned_message: Option<Box<Message>>,
pub pinned_message: Option<Message>,
/// The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in [`GetChat`](crate::methods::GetChat).
pub message_auto_delete_time: Option<i64>,
}
Expand All @@ -65,7 +65,7 @@ pub struct Group {
/// Primary invite link. Returned only in [`GetChat`](crate::methods::GetChat).
pub invite_link: Option<Box<str>>,
/// The most recent pinned message (by sending date). Returned only in [`GetChat`](crate::methods::GetChat).
pub pinned_message: Option<Box<Message>>,
pub pinned_message: Option<Message>,
/// Default chat member permissions. Returned only in [`GetChat`](crate::methods::GetChat).
pub permissions: Option<ChatPermissions>,
/// The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in [`GetChat`](crate::methods::GetChat).
Expand Down Expand Up @@ -115,7 +115,7 @@ pub struct Supergroup {
/// Primary invite link. Returned only in [`GetChat`](crate::methods::GetChat).
pub invite_link: Option<Box<str>>,
/// The most recent pinned message (by sending date). Returned only in [`GetChat`](crate::methods::GetChat).
pub pinned_message: Option<Box<Message>>,
pub pinned_message: Option<Message>,
/// Default chat member permissions. Returned only in [`GetChat`](crate::methods::GetChat).
pub permissions: Option<ChatPermissions>,
/// The minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in [`GetChat`](crate::methods::GetChat).
Expand Down Expand Up @@ -171,7 +171,7 @@ pub struct Channel {
/// Primary invite link. Returned only in [`GetChat`](crate::methods::GetChat).
pub invite_link: Option<Box<str>>,
/// The most recent pinned message (by sending date). Returned only in [`GetChat`](crate::methods::GetChat).
pub pinned_message: Option<Box<Message>>,
pub pinned_message: Option<Message>,
/// The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in [`GetChat`](crate::methods::GetChat).
pub message_auto_delete_time: Option<i64>,
/// `true`, if non-administrators can only get the list of bots and administrators in the chat. Returned only in [`GetChat`](crate::methods::GetChat).
Expand Down
2 changes: 1 addition & 1 deletion src/types/giveaway_completed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ pub struct GiveawayCompleted {
/// Number of undistributed prizes
pub unclaimed_prize_count: Option<i64>,
/// Message with the giveaway that was completed, if it wasn't deleted
pub giveaway_message: Option<Box<Message>>,
pub giveaway_message: Option<Message>,
}
Loading

0 comments on commit de2d2a9

Please sign in to comment.