fix clippy warning

This commit is contained in:
marin postma 2021-06-14 14:35:40 +02:00
parent 7cb2dcbdf8
commit a780cff8fd
No known key found for this signature in database
GPG Key ID: 6088B7721C3E39F9
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ pub mod settings;
pub mod stats; pub mod stats;
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
#[allow(clippy::clippy::large_enum_variant)]
#[serde(tag = "name")] #[serde(tag = "name")]
pub enum UpdateType { pub enum UpdateType {
ClearAll, ClearAll,

View File

@ -110,11 +110,11 @@ async fn reset_all_settings() {
assert_eq!(response["searchableAttributes"], json!(["*"])); assert_eq!(response["searchableAttributes"], json!(["*"]));
assert_eq!(response["stopWords"], json!([])); assert_eq!(response["stopWords"], json!([]));
assert_eq!(response["filterableAttributes"], json!([])); assert_eq!(response["filterableAttributes"], json!([]));
assert_eq!(response["synonyms"], json!({}));
let (response, code) = index.get_document(1, None).await; let (response, code) = index.get_document(1, None).await;
assert_eq!(code, 200); assert_eq!(code, 200);
assert!(response.as_object().unwrap().get("age").is_some()); assert!(response.as_object().unwrap().get("age").is_some());
assert_eq!(response["synonyms"], json!({}));
} }
#[actix_rt::test] #[actix_rt::test]