Skip to content

Conversation

@kim
Copy link
Contributor

@kim kim commented Nov 18, 2025

It is almost always wrong / undesirable to pack more than one
transaction in a commit, so adjust the default accordingly.

This also avoids surprises when using #[serde(default)] with nested
structs -- serde evaluates the default depth-first, so overriding a
single field in a nested struct will not consider any
#[serde(default = "custom_default")] annotations on the parent.

It is almost always wrong / undesirable to pack more than one
transaction in a commit, so adjust the default accordingly.

This also avoids surprises when using `#[serde(default)]` with nested
structs -- serde evaluates the default depth-first, so overriding a
single field in a nested struct will not consider any
`#[serde(default = "custom_default")]` annotations on the parent.
@kim kim requested a review from Shubham8287 November 18, 2025 11:59
@kim kim enabled auto-merge November 18, 2025 18:51
@kim kim added this pull request to the merge queue Nov 18, 2025
Merged via the queue into master with commit fc784fd Nov 18, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants