Fix nitpicks

This commit is contained in:
Сырцев Вадим Игоревич 2024-08-23 15:32:28 +03:00
parent 79147a9baa
commit 765468224c
No known key found for this signature in database
GPG key ID: D581B7E10673309B
2 changed files with 4 additions and 2 deletions

View file

@ -47,10 +47,10 @@ impl MessageReactionUpdated {
#[derive(Deserialize)]
struct ActorDe {
/// The user that changed the reaction, if the user isn't anonymous
pub user: Option<User>,
user: Option<User>,
/// The chat on behalf of which the reaction was changed, if the user is
/// anonymous
pub actor_chat: Option<Chat>,
actor_chat: Option<Chat>,
}
fn deserialize_actor<'d, D: Deserializer<'d>>(d: D) -> Result<MaybeAnonymousUser, D::Error> {

View file

@ -954,6 +954,8 @@ mod test {
location: None,
join_to_send_messages: None,
join_by_request: None,
custom_emoji_sticker_set_name: None,
unrestrict_boost_count: None,
}),
description: None,
invite_link: None,