Make the constructor methods publicly visible for the PrettyFormatter.

This commit is contained in:
Jarred Nicholls 2016-01-05 09:38:49 -05:00
parent 248b679095
commit 9e938d0585

View File

@ -440,11 +440,11 @@ pub struct PrettyFormatter<'a> {
}
impl<'a> PrettyFormatter<'a> {
fn new() -> Self {
pub fn new() -> Self {
PrettyFormatter::with_indent(b" ")
}
fn with_indent(indent: &'a [u8]) -> Self {
pub fn with_indent(indent: &'a [u8]) -> Self {
PrettyFormatter {
current_indent: 0,
indent: indent,