Skip to content

Commit 8be6647

Browse files
authored
Merge pull request #1268 from SOF3/compact-default
Implement Default for CompactFormatter
2 parents ba5b3cc + bea0fe6 commit 8be6647

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
@@ -1935,7 +1935,7 @@ pub trait Formatter {
19351935
}
19361936

19371937
/// This structure compacts a JSON value with no extra whitespace.
1938-
#[derive(Clone, Debug)]
1938+
#[derive(Clone, Debug, Default)]
19391939
pub struct CompactFormatter;
19401940

19411941
impl Formatter for CompactFormatter {}

0 commit comments

Comments
 (0)