@@ -73,7 +73,7 @@ update_settings_1: |-
7373 synonyms.insert(String::from("logan"), vec!["wolverine"]);
7474
7575 let settings = Settings::new()
76- .with_ranking_rules(& [
76+ .with_ranking_rules([
7777 "typo",
7878 "words",
7979 "proximity",
@@ -82,24 +82,24 @@ update_settings_1: |-
8282 "exactness",
8383 "desc(release_date)",
8484 "desc(rank)"
85- ][..] )
85+ ])
8686 .with_distinct_attribute("movie_id")
87- .with_searchable_attributes(& [
87+ .with_searchable_attributes([
8888 "title",
8989 "description",
9090 "genre"
91- ][..] )
92- .with_displayed_attributes(& [
91+ ])
92+ .with_displayed_attributes([
9393 "title",
9494 "description",
9595 "genre",
9696 "release_date"
97- ][..] )
98- .with_stop_words(& [
97+ ])
98+ .with_stop_words([
9999 "the",
100100 "a",
101101 "an"
102- ][..] )
102+ ])
103103 .with_synonyms(synonyms);
104104
105105 let progress: Progress = movies.set_settings(&settings).await.unwrap();
@@ -120,7 +120,7 @@ get_stop_words_1: |-
120120 let stop_words: Vec<String> = movies.get_stop_words().await.unwrap();
121121update_stop_words_1 : |-
122122 let stop_words = ["of", "the", "to"];
123- let progress: Progress = movies.set_stop_words(&stop_words[..] ).await.unwrap();
123+ let progress: Progress = movies.set_stop_words(&stop_words).await.unwrap();
124124reset_stop_words_1 : |-
125125 let progress: Progress = movies.reset_stop_words().await.unwrap();
126126get_ranking_rules_1 : |-
@@ -137,7 +137,7 @@ update_ranking_rules_1: |-
137137 "desc(rank)",
138138 ];
139139
140- let progress: Progress = movies.set_ranking_rules(&ranking_rules[..] ).await.unwrap();
140+ let progress: Progress = movies.set_ranking_rules(&ranking_rules).await.unwrap();
141141reset_ranking_rules_1 : |-
142142 let progress: Progress = movies.reset_ranking_rules().await.unwrap();
143143get_distinct_attribute_1 : |-
@@ -155,7 +155,7 @@ update_searchable_attributes_1: |-
155155 "genre"
156156 ];
157157
158- let progress: Progress = movies.set_searchable_attributes(&searchable_attributes[..] ).await.unwrap();
158+ let progress: Progress = movies.set_searchable_attributes(&searchable_attributes).await.unwrap();
159159reset_searchable_attributes_1 : |-
160160 let progress: Progress = movies.reset_searchable_attributes().await.unwrap();
161161get_attributes_for_faceting_1 : |-
@@ -166,7 +166,7 @@ update_attributes_for_faceting_1: |-
166166 "director"
167167 ];
168168
169- let progress: Progress = movies.set_attributes_for_faceting(&attributes_for_faceting[..] ).await.unwrap();
169+ let progress: Progress = movies.set_attributes_for_faceting(&attributes_for_faceting).await.unwrap();
170170reset_attributes_for_faceting_1 : |-
171171 let progress: Progress = movies.reset_attributes_for_faceting().await.unwrap();
172172get_displayed_attributes_1 : |-
@@ -179,7 +179,7 @@ update_displayed_attributes_1: |-
179179 "release_date"
180180 ];
181181
182- let progress: Progress = movies.set_displayed_attributes(&displayed_attributes[..] ).await.unwrap();
182+ let progress: Progress = movies.set_displayed_attributes(&displayed_attributes).await.unwrap();
183183reset_displayed_attributes_1 : |-
184184 let progress: Progress = movies.reset_displayed_attributes().await.unwrap();
185185get_index_stats_1 : |-
@@ -201,7 +201,7 @@ field_properties_guide_searchable_1: |-
201201 "genre"
202202 ];
203203
204- let progress: Progress = movies.set_searchable_attributes(&searchable_attributes[..] ).await.unwrap();
204+ let progress: Progress = movies.set_searchable_attributes(&searchable_attributes).await.unwrap();
205205field_properties_guide_displayed_1 : |-
206206 let displayed_attributes = [
207207 "title",
@@ -210,7 +210,7 @@ field_properties_guide_displayed_1: |-
210210 "release_date"
211211 ];
212212
213- let progress: Progress = movies.set_displayed_attributes(&displayed_attributes[..] ).await.unwrap();
213+ let progress: Progress = movies.set_displayed_attributes(&displayed_attributes).await.unwrap();
214214filtering_guide_1 : |-
215215 let results: SearchResults<Movie> = movies.search()
216216 .with_query("Avengers")
@@ -321,9 +321,9 @@ settings_guide_synonyms_1: |-
321321 let tops: Index = client.get_index("tops").await.unwrap();
322322 let progress: Progress = tops.set_synonyms(&synonyms).await.unwrap();
323323settings_guide_stop_words_1 : |-
324- let progress: Progress = movies.set_stop_words(& ["the", "a", "an"][.. ]).await.unwrap();
324+ let progress: Progress = movies.set_stop_words(["the", "a", "an"]).await.unwrap();
325325settings_guide_attributes_for_faceting_1 : |-
326- let progress: Progress = movies.set_attributes_for_faceting(& ["director", "genres"][.. ]).await.unwrap();
326+ let progress: Progress = movies.set_attributes_for_faceting(["director", "genres"]).await.unwrap();
327327settings_guide_ranking_rules_1 : |-
328328 let ranking_rules = [
329329 "typo",
@@ -336,7 +336,7 @@ settings_guide_ranking_rules_1: |-
336336 "desc(rank)",
337337 ];
338338
339- let progress: Progress = movies.set_ranking_rules(&ranking_rules[..] ).await.unwrap();
339+ let progress: Progress = movies.set_ranking_rules(&ranking_rules).await.unwrap();
340340settings_guide_distinct_1 : |-
341341 let jackets: Index = client.get_index("jackets").await.unwrap();
342342 let progress: Progress = jackets.set_distinct_attribute("product_id").await.unwrap();
@@ -347,7 +347,7 @@ settings_guide_searchable_1: |-
347347 "genre"
348348 ];
349349
350- let progress: Progress = movies.set_searchable_attributes(&searchable_attributes[..] ).await.unwrap();
350+ let progress: Progress = movies.set_searchable_attributes(&searchable_attributes).await.unwrap();
351351settings_guide_displayed_1 : |-
352352 let displayed_attributes = [
353353 "title",
@@ -356,7 +356,7 @@ settings_guide_displayed_1: |-
356356 "release_date"
357357 ];
358358
359- let progress: Progress = movies.set_displayed_attributes(&displayed_attributes[..] ).await.unwrap();
359+ let progress: Progress = movies.set_displayed_attributes(&displayed_attributes).await.unwrap();
360360documents_guide_add_movie_1 : |-
361361 // Define the type of our documents
362362 #[derive(Serialize, Deserialize, Debug)]
@@ -500,7 +500,7 @@ getting_started_search_md: |-
500500
501501 [About this SDK](https://github.com/meilisearch/meilisearch-rust/)
502502faceted_search_update_settings_1 : |-
503- let progress: Progress = movies.set_attributes_for_faceting(& ["director", "genres"][.. ]).await.unwrap();
503+ let progress: Progress = movies.set_attributes_for_faceting(["director", "genres"]).await.unwrap();
504504faceted_search_facet_filters_1 : |-
505505 let results: SearchResults<Movie> = movies.search()
506506 .with_query("thriller")
@@ -524,7 +524,7 @@ faceted_search_walkthrough_attributes_for_faceting_1: |-
524524 "production_companies"
525525 ];
526526
527- let progress: Progress = movies.set_attributes_for_faceting(&attributes_for_faceting[..] ).await.unwrap();
527+ let progress: Progress = movies.set_attributes_for_faceting(&attributes_for_faceting).await.unwrap();
528528faceted_search_walkthrough_facet_filters_1 : |-
529529 let results: SearchResults<Movie> = movies.search()
530530 .with_query("thriller")
0 commit comments