Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default attribute when constructing skipped values #121

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Conversation

udoprog
Copy link
Owner

@udoprog udoprog commented Apr 10, 2024

This changes #[musli(skip = <expr>)] to instead use #[musli(skip, default = <path>)] when constructing default values for skipped fields. Skip implies #[musli(default)] if an option is not specified.

@udoprog udoprog added the enhancement New feature or request label Apr 10, 2024
@udoprog udoprog merged commit fd623ae into main Apr 10, 2024
4 checks passed
@udoprog udoprog deleted the skip-fixes branch April 10, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant