Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Oct 6, 2023
1 parent 3eeecfe commit a7aa97f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/db/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl FirestoreDb {
.collect::<Vec<String>>()
.join(", ")
})
.unwrap_or_else(|| "".to_string()),
.unwrap_or_default(),
mask: params
.return_only_fields
.map(|masks| DocumentMask { field_paths: masks }),
Expand Down
2 changes: 1 addition & 1 deletion src/db/query_models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl From<FirestoreQueryParams> 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 {
Expand Down

0 comments on commit a7aa97f

Please sign in to comment.