From 664717e07d76a981e5631ad6f25eff7c080d74ed Mon Sep 17 00:00:00 2001 From: Andrey Brusnik Date: Fri, 19 Jul 2024 22:43:22 +0400 Subject: [PATCH] Use ChatFullInfo::default() in gieaway, message_reaction and chat_boost tests --- crates/teloxide-core/src/types/message.rs | 8 ++++---- crates/teloxide-core/src/types/update.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/teloxide-core/src/types/message.rs b/crates/teloxide-core/src/types/message.rs index a375597e..c5e71570 100644 --- a/crates/teloxide-core/src/types/message.rs +++ b/crates/teloxide-core/src/types/message.rs @@ -2390,7 +2390,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }], winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(), winner_count: 1, @@ -2499,7 +2499,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }, via_bot: None, kind: MessageKind::Giveaway(MessageGiveaway { @@ -2522,7 +2522,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }], winners_selection_date: DateTime::from_timestamp(1721162701, 0) .unwrap(), @@ -2623,7 +2623,7 @@ mod tests { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None } + chat_full_info: ChatFullInfo::default() }, giveaway_message_id: MessageId(27), winners_selection_date: DateTime::from_timestamp(1721162701, 0).unwrap(), diff --git a/crates/teloxide-core/src/types/update.rs b/crates/teloxide-core/src/types/update.rs index 5a1e8804..185e5ebe 100644 --- a/crates/teloxide-core/src/types/update.rs +++ b/crates/teloxide-core/src/types/update.rs @@ -882,7 +882,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, message_id: MessageId(35), user: Some(User { @@ -962,7 +962,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, message_id: MessageId(36), date: DateTime::from_timestamp(1721306391, 0).unwrap(), @@ -1039,7 +1039,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, boost: ChatBoost { boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(), @@ -1116,7 +1116,7 @@ mod test { message_auto_delete_time: None, has_hidden_members: false, has_aggressive_anti_spam_enabled: false, - chat_full_info: ChatFullInfo { emoji_status_expiration_date: None }, + chat_full_info: ChatFullInfo::default(), }, boost_id: "4506e1b7e866e33fcbde78fe1746ec3a".to_owned(), remove_date: DateTime::from_timestamp(1721999621, 0).unwrap(),