mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +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] {
|
||||
if let Some(field) = mime_parser.get(header_def) {
|
||||
for header_def in &[HeaderDef::To, HeaderDef::Cc] {
|
||||
if let Some(field) = mime_parser.get(header_def.clone()) {
|
||||
dc_add_or_lookup_contacts_by_address_list(
|
||||
context,
|
||||
&field,
|
||||
|
||||
Reference in New Issue
Block a user