Skip to content
This repository was archived by the owner on Aug 15, 2021. It is now read-only.

Commit 225c48f

Browse files
RReverserpyfisch
authored andcommitted
Add is_human_readable -> false to Deserializer
Fixes #57
1 parent d4c185e commit 225c48f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/de.rs

+5
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ where
663663
}
664664
}
665665

666+
#[inline]
667+
fn is_human_readable(&self) -> bool {
668+
false
669+
}
670+
666671
forward_to_deserialize_any! {
667672
bool i8 i16 i32 i64 u8 u16 u32 u64 f32 f64 char str string unit
668673
unit_struct seq tuple tuple_struct map struct identifier ignored_any

src/ser.rs

+1
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ where
454454
self.serialize_struct(name, len)
455455
}
456456

457+
#[inline]
457458
fn is_human_readable(&self) -> bool {
458459
false
459460
}

0 commit comments

Comments
 (0)