mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
sync human-readable value (#8859)
Co-authored-by: Justin Davis <jtdavis777@gmail.com>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user