Fix clippy errors

This commit is contained in:
Clémentine Urquizar
2021-06-17 18:50:18 +02:00
parent 2f2484e186
commit 9e8888b603
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ async fn stats() {
assert_eq!(code, 200);
assert_eq!(response["numberOfDocuments"], 0);
assert_eq!(response["isIndexing"], false);
assert!(response["isIndexing"] == false);
assert!(response["fieldsDistribution"]
.as_object()
.unwrap()
@ -41,7 +41,7 @@ async fn stats() {
assert_eq!(code, 200);
assert_eq!(response["numberOfDocuments"], 2);
assert_eq!(response["isIndexing"], false);
assert!(response["isIndexing"] == false);
assert_eq!(response["fieldsDistribution"]["id"], 2);
assert_eq!(response["fieldsDistribution"]["name"], 1);
assert_eq!(response["fieldsDistribution"]["age"], 1);