From dbe7301125c28df7a042a4ba82b46a0f1863abf9 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Tue, 11 Jul 2023 22:28:21 +0000 Subject: [PATCH] Cleanup error messages that should not contain the string TODO --- serde_with/src/key_value_map.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serde_with/src/key_value_map.rs b/serde_with/src/key_value_map.rs index 67d9232b..7faaf068 100644 --- a/serde_with/src/key_value_map.rs +++ b/serde_with/src/key_value_map.rs @@ -698,7 +698,7 @@ where self.delegate .serialize_entry(&key, &SerContent::Seq(self.content)) } else { - Err(SerError::custom("TODO, missing value for `$key$` field")) + Err(SerError::custom("missing value for `$key$` field")) } } } @@ -739,7 +739,7 @@ where self.delegate .serialize_entry(&key, &SerContent::Tuple(self.content)) } else { - Err(SerError::custom("TODO, missing value for `$key$` field")) + Err(SerError::custom("missing value for `$key$` field")) } } } @@ -780,7 +780,7 @@ where self.delegate .serialize_entry(&key, &SerContent::TupleStruct(self.name, self.content)) } else { - Err(SerError::custom("TODO, missing value for `$key$` field")) + Err(SerError::custom("missing value for `$key$` field")) } } } @@ -842,7 +842,7 @@ where self.delegate .serialize_entry(&key, &SerContent::Map(self.content)) } else { - Err(SerError::custom("TODO, missing value for `$key$` field")) + Err(SerError::custom("missing value for `$key$` field")) } } } @@ -889,7 +889,7 @@ where self.delegate .serialize_entry(&key, &SerContent::Struct(self.name, self.content)) } else { - Err(SerError::custom("TODO, missing value for `key` field")) + Err(SerError::custom("missing value for `$key$` field")) } } }