mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
Reduce number of generic impl AsRef
This commit is contained in:
@@ -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>>(),
|
||||
))),
|
||||
|
||||
Reference in New Issue
Block a user