Reduce number of generic impl AsRef

This commit is contained in:
link2xt
2022-05-07 17:37:39 +00:00
parent 60d3960f3a
commit 5a85255be9
4 changed files with 17 additions and 22 deletions

View File

@@ -1919,7 +1919,7 @@ pub unsafe extern "C" fn dc_get_contacts(
let query = to_opt_string_lossy(query);
block_on(async move {
match Contact::get_all(ctx, flags, query).await {
match Contact::get_all(ctx, flags, query.as_deref()).await {
Ok(contacts) => Box::into_raw(Box::new(dc_array_t::from(
contacts.iter().map(|id| id.to_u32()).collect::<Vec<u32>>(),
))),