Merge pull request #1268 from SOF3/compact-default

Implement Default for CompactFormatter
This commit is contained in:
David Tolnay 2025-08-18 20:45:57 -07:00 committed by GitHub
commit 8be664752f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {}