mirror of
https://github.com/serde-rs/json.git
synced 2025-09-30 22:41:51 +00:00
Merge pull request #1268 from SOF3/compact-default
Implement Default for CompactFormatter
This commit is contained in:
commit
8be664752f
@ -1935,7 +1935,7 @@ pub trait Formatter {
|
||||
}
|
||||
|
||||
/// This structure compacts a JSON value with no extra whitespace.
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct CompactFormatter;
|
||||
|
||||
impl Formatter for CompactFormatter {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user