mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
sync human-readable value (#8859)
Co-authored-by: Justin Davis <jtdavis777@gmail.com>
This commit is contained in:
parent
5b9de8b6c0
commit
3c1bb67ae1
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue