Refactor TDLib facade and local time handling
This commit is contained in:
@@ -146,7 +146,7 @@ impl TestAppBuilder {
|
||||
pub fn with_message(mut self, chat_id: i64, message: MessageInfo) -> Self {
|
||||
self.messages
|
||||
.entry(chat_id)
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.push(message);
|
||||
self
|
||||
}
|
||||
@@ -155,7 +155,7 @@ impl TestAppBuilder {
|
||||
pub fn with_messages(mut self, chat_id: i64, messages: Vec<MessageInfo>) -> Self {
|
||||
self.messages
|
||||
.entry(chat_id)
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.extend(messages);
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user