mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 07:21:29 +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 from;
|
||||
mod index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user