From bea0fe6b3e1d06dcd46a38be42f775f22f6c2b8e Mon Sep 17 00:00:00 2001 From: SOFe Date: Sun, 6 Jul 2025 21:49:46 +0800 Subject: [PATCH] Implement Default for CompactFormatter --- src/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {}