diff --git a/Cargo.lock b/Cargo.lock index f717be694..1f34a388e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1588,7 +1588,7 @@ checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" [[package]] name = "meilisearch-error" -version = "0.15.0" +version = "0.17.0" dependencies = [ "actix-http", ] diff --git a/src/updates/mod.rs b/src/updates/mod.rs index 93cbcc008..96ad3e16c 100644 --- a/src/updates/mod.rs +++ b/src/updates/mod.rs @@ -216,7 +216,7 @@ impl UpdateHandler { // We transpose the settings JSON struct into a real setting update. if let Some(ref names) = settings.searchable_attributes { match names { - Some(names) => builder.set_searchable_fields(&names), + Some(names) => builder.set_searchable_fields(names.clone()), None => builder.reset_searchable_fields(), } } @@ -224,20 +224,20 @@ impl UpdateHandler { // We transpose the settings JSON struct into a real setting update. if let Some(ref names) = settings.displayed_attributes { match names { - Some(names) => builder.set_displayed_fields(&names), + Some(names) => builder.set_displayed_fields(names.clone()), None => builder.reset_displayed_fields(), } } // We transpose the settings JSON struct into a real setting update. if let Some(ref facet_types) = settings.faceted_attributes { - builder.set_faceted_fields(&facet_types); + builder.set_faceted_fields(facet_types.clone()); } // We transpose the settings JSON struct into a real setting update. if let Some(ref criteria) = settings.criteria { match criteria { - Some(criteria) => builder.set_criteria(&criteria), + Some(criteria) => builder.set_criteria(criteria.clone()), None => builder.reset_criteria(), } }