mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
chore: fix Rust 1.74 clippy warning
This commit is contained in:
@@ -2623,7 +2623,6 @@ async fn test_incoming_contact_request() -> Result<()> {
|
|||||||
let chat = chat::Chat::load_from_db(&t, msg.chat_id).await?;
|
let chat = chat::Chat::load_from_db(&t, msg.chat_id).await?;
|
||||||
assert!(chat.is_contact_request());
|
assert!(chat.is_contact_request());
|
||||||
|
|
||||||
loop {
|
|
||||||
let event = t
|
let event = t
|
||||||
.evtracker
|
.evtracker
|
||||||
.get_matching(|evt| matches!(evt, EventType::IncomingMsg { .. }))
|
.get_matching(|evt| matches!(evt, EventType::IncomingMsg { .. }))
|
||||||
@@ -2632,12 +2631,11 @@ async fn test_incoming_contact_request() -> Result<()> {
|
|||||||
EventType::IncomingMsg { chat_id, msg_id } => {
|
EventType::IncomingMsg { chat_id, msg_id } => {
|
||||||
assert_eq!(msg.chat_id, chat_id);
|
assert_eq!(msg.chat_id, chat_id);
|
||||||
assert_eq!(msg.id, msg_id);
|
assert_eq!(msg.id, msg_id);
|
||||||
return Ok(());
|
Ok(())
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
async fn test_get_parent_message() -> Result<()> {
|
async fn test_get_parent_message() -> Result<()> {
|
||||||
|
|||||||
Reference in New Issue
Block a user