mirror of
https://github.com/serde-rs/json.git
synced 2026-03-06 22:09:18 +00:00
Make the constructor methods publicly visible for the PrettyFormatter.
This commit is contained in:
parent
248b679095
commit
9e938d0585
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user