diff --git a/meilisearch-core/src/serde/convert_to_string.rs b/meilisearch-core/src/serde/convert_to_string.rs index 4f89c6166..ca5c59a78 100644 --- a/meilisearch-core/src/serde/convert_to_string.rs +++ b/meilisearch-core/src/serde/convert_to_string.rs @@ -88,7 +88,7 @@ impl ser::Serializer for ConvertToString { } fn serialize_unit(self) -> Result { - Ok("".to_string()) + Ok(String::new()) } fn serialize_unit_struct(self, _name: &'static str) -> Result {