mirror of
https://github.com/serde-rs/json.git
synced 2025-12-30 05:10:37 +00:00
feat: impl Default for &Value
This commit is contained in:
parent
cd55b5a0ff
commit
9206cc0150
@ -924,6 +924,13 @@ impl Default for Value {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Default for &'a Value {
|
||||
fn default() -> Self {
|
||||
const DEFAULT: Value = Value::Null;
|
||||
&DEFAULT
|
||||
}
|
||||
}
|
||||
|
||||
mod de;
|
||||
mod from;
|
||||
mod index;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user