diff --git a/src/with.rs b/src/with.rs index 26880cfc..d0bdc7c4 100644 --- a/src/with.rs +++ b/src/with.rs @@ -318,6 +318,10 @@ pub mod singleton_map { { self.delegate.collect_str(value) } + + fn is_human_readable(&self) -> bool { + self.delegate.is_human_readable() + } } struct SerializeTupleVariantAsSingletonMap { @@ -629,6 +633,10 @@ pub mod singleton_map { { self.delegate.deserialize_ignored_any(visitor) } + + fn is_human_readable(&self) -> bool { + self.delegate.is_human_readable() + } } struct SingletonMapAsEnum { @@ -1183,6 +1191,10 @@ pub mod singleton_map_recursive { { self.delegate.collect_str(value) } + + fn is_human_readable(&self) -> bool { + self.delegate.is_human_readable() + } } impl SerializeSeq for SingletonMapRecursive @@ -1653,6 +1665,10 @@ pub mod singleton_map_recursive { self.delegate .deserialize_ignored_any(SingletonMapRecursive { delegate: visitor }) } + + fn is_human_readable(&self) -> bool { + self.delegate.is_human_readable() + } } impl<'de, V> Visitor<'de> for SingletonMapRecursive