diff --git a/src/db/list.rs b/src/db/list.rs index 570bf70..3651482 100644 --- a/src/db/list.rs +++ b/src/db/list.rs @@ -324,7 +324,7 @@ impl FirestoreDb { .collect::>() .join(", ") }) - .unwrap_or_else(|| "".to_string()), + .unwrap_or_default(), mask: params .return_only_fields .map(|masks| DocumentMask { field_paths: masks }), diff --git a/src/db/query_models.rs b/src/db/query_models.rs index 5391710..0f278d0 100644 --- a/src/db/query_models.rs +++ b/src/db/query_models.rs @@ -61,7 +61,7 @@ impl From for StructuredQuery { order_by: params .order_by .map(|po| po.into_iter().map(|fo| fo.into()).collect()) - .unwrap_or_else(Vec::new), + .unwrap_or_default(), from: match params.collection_id { FirestoreQueryCollection::Single(collection_id) => { vec![structured_query::CollectionSelector {