diff --git a/src/ser.rs b/src/ser.rs index 9b14389c8..4b8aea514 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -1947,7 +1947,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 {}