From bc6d86c8ced2406b1df5c10acb0277bb52cfdfe9 Mon Sep 17 00:00:00 2001 From: Pedro Paulo de Amorim Date: Tue, 31 Mar 2020 13:51:12 +0100 Subject: [PATCH] serialize_unit returns a empty string --- meilisearch-core/src/serde/convert_to_string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-core/src/serde/convert_to_string.rs b/meilisearch-core/src/serde/convert_to_string.rs index bac0de99e..4f89c6166 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 { - Err(SerializerError::UnserializableType { type_name: "()" }) + Ok("".to_string()) } fn serialize_unit_struct(self, _name: &'static str) -> Result {