Skip to content

Commit bea0fe6

Browse files
committed
Implement Default for CompactFormatter
1 parent cd55b5a commit bea0fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ pub trait Formatter {
19471947
}
19481948

19491949
/// This structure compacts a JSON value with no extra whitespace.
1950-
#[derive(Clone, Debug)]
1950+
#[derive(Clone, Debug, Default)]
19511951
pub struct CompactFormatter;
19521952

19531953
impl Formatter for CompactFormatter {}

0 commit comments

Comments
 (0)