sync human-readable value (#8859)

Co-authored-by: Justin Davis <jtdavis777@gmail.com>
This commit is contained in:
Fawdlstty
2026-02-04 23:43:19 +08:00
committed by GitHub
parent 5b9de8b6c0
commit 3c1bb67ae1

View File

@@ -421,6 +421,9 @@ impl<'a> Serializer for MapKeySerializer<'a> {
type SerializeStruct = Impossible<(), Error>;
type SerializeStructVariant = Impossible<(), Error>;
fn is_human_readable(&self) -> bool {
self.0.is_human_readable()
}
fn serialize_bool(self, _value: bool) -> Result<(), Error> {
key_must_be_a_string()
}