Skip to content

Commit 9206cc0

Browse files
committed
feat: impl Default for &Value
1 parent cd55b5a commit 9206cc0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/value/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,13 @@ impl Default for Value {
924924
}
925925
}
926926

927+
impl<'a> Default for &'a Value {
928+
fn default() -> Self {
929+
const DEFAULT: Value = Value::Null;
930+
&DEFAULT
931+
}
932+
}
933+
927934
mod de;
928935
mod from;
929936
mod index;

0 commit comments

Comments
 (0)