clippy + fmt

This commit is contained in:
Quentin de Quelen
2020-04-10 19:05:05 +02:00
committed by qdequele
parent 22fbff98d4
commit 6a1f73a304
17 changed files with 633 additions and 339 deletions

View File

@ -148,10 +148,7 @@ fn write_custom_ranking_and_index_documents() {
// 1 - Add ranking rules with one custom ranking on a string
let body = json!([
"asc(title)",
"typo"
]);
let body = json!(["asc(title)", "typo"]);
server.update_ranking_rules(body);
@ -184,5 +181,4 @@ fn write_custom_ranking_and_index_documents() {
assert_eq!(status_code, 200);
assert_json_eq!(response, expected, ordered: false);
}