mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
Fix some clippy warnings
This commit is contained in:
committed by
Floris Bruynooghe
parent
d7c42f3c98
commit
4732085421
@@ -1207,9 +1207,8 @@ pub fn get_chat_media(
|
||||
|ids| {
|
||||
let mut ret = Vec::new();
|
||||
for id in ids {
|
||||
match id {
|
||||
Ok(msg_id) => ret.push(msg_id),
|
||||
Err(_) => (),
|
||||
if let Ok(msg_id) = id {
|
||||
ret.push(msg_id)
|
||||
}
|
||||
}
|
||||
Ok(ret)
|
||||
@@ -1530,7 +1529,7 @@ pub(crate) fn add_contact_to_chat_ex(
|
||||
msg.id = send_msg(context, chat_id, &mut msg)?;
|
||||
context.call_cb(Event::MsgsChanged {
|
||||
chat_id,
|
||||
msg_id: MsgId::from(msg.id),
|
||||
msg_id: msg.id,
|
||||
});
|
||||
}
|
||||
context.call_cb(Event::MsgsChanged {
|
||||
|
||||
Reference in New Issue
Block a user