mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
Reduce number of AsRef generics
They result in compilation of duplicate code.
This commit is contained in:
@@ -740,7 +740,7 @@ async fn add_all_recipients_as_contacts(context: &Context, imap: &mut Imap, fold
|
||||
let display_name_normalized = contact
|
||||
.display_name
|
||||
.as_ref()
|
||||
.map(normalize_name)
|
||||
.map(|s| normalize_name(s))
|
||||
.unwrap_or_default();
|
||||
|
||||
match Contact::add_or_lookup(
|
||||
|
||||
Reference in New Issue
Block a user