Hide is_human_readable constructors in serde_test

Until a good API can be found
This commit is contained in:
Markus Westerlind
2017-10-13 17:33:03 +02:00
parent 3b135431fd
commit e9b530a000
4 changed files with 16 additions and 2 deletions
+2
View File
@@ -24,6 +24,8 @@ impl<'a> Serializer<'a> {
Serializer::readable(tokens, true)
}
// Not public API
#[doc(hidden)]
pub fn readable(tokens: &'a [Token], is_human_readable: bool) -> Self {
Serializer { tokens: tokens, is_human_readable: is_human_readable }
}