mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
not sure it's much better but using a static-sized array is probably better than a dynamically sized vec, thanks @dignifiedquire
This commit is contained in:
@@ -137,8 +137,8 @@ pub fn dc_receive_imf(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for header_def in vec![HeaderDef::To, HeaderDef::Cc] {
|
for header_def in &[HeaderDef::To, HeaderDef::Cc] {
|
||||||
if let Some(field) = mime_parser.get(header_def) {
|
if let Some(field) = mime_parser.get(header_def.clone()) {
|
||||||
dc_add_or_lookup_contacts_by_address_list(
|
dc_add_or_lookup_contacts_by_address_list(
|
||||||
context,
|
context,
|
||||||
&field,
|
&field,
|
||||||
|
|||||||
Reference in New Issue
Block a user