mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +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?;
|
||||
assert!(chat.is_contact_request());
|
||||
|
||||
loop {
|
||||
let event = t
|
||||
.evtracker
|
||||
.get_matching(|evt| matches!(evt, EventType::IncomingMsg { .. }))
|
||||
@@ -2632,11 +2631,10 @@ async fn test_incoming_contact_request() -> Result<()> {
|
||||
EventType::IncomingMsg { chat_id, msg_id } => {
|
||||
assert_eq!(msg.chat_id, chat_id);
|
||||
assert_eq!(msg.id, msg_id);
|
||||
return Ok(());
|
||||
Ok(())
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
|
||||
Reference in New Issue
Block a user