Implement Default for CompactFormatter

This commit is contained in:
SOFe 2025-07-06 21:49:46 +08:00
parent cd55b5a0ff
commit bea0fe6b3e
No known key found for this signature in database
GPG Key ID: F778C39247B7E1BE

View File

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