Skip to content

feat: impl Default for &Value#1265

Merged
dtolnay merged 1 commit into
serde-rs:masterfrom
aatifsyed:master
Jul 31, 2025
Merged

feat: impl Default for &Value#1265
dtolnay merged 1 commit into
serde-rs:masterfrom
aatifsyed:master

Conversation

@aatifsyed

Copy link
Copy Markdown
Contributor

A rounded edge for:

let val: Value;
val.pointer("/foo).unwrap_or_default()

Obviously not required.

@aatifsyed

Copy link
Copy Markdown
Contributor Author

@dtolnay feel free to close this as WONTFIX :)

@dtolnay dtolnay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dtolnay
dtolnay merged commit 84abbdb into serde-rs:master Jul 31, 2025
16 checks passed
takumi-earth pushed a commit to earthlings-dev/json that referenced this pull request Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants