mirror of
https://github.com/serde-rs/json.git
synced 2025-10-04 08:16:06 +00:00
Merge pull request #1265 from aatifsyed/master
feat: impl Default for &Value
This commit is contained in:
commit
84abbdb613
@ -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 de;
|
||||||
mod from;
|
mod from;
|
||||||
mod index;
|
mod index;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user