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

Make zone lengths derive from type #5936

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

sffc
Copy link
Member

@sffc sffc commented Dec 20, 2024

Fixes #5885

CC @Nerixyz

@sffc sffc requested review from zbraniecki and a team as code owners December 20, 2024 00:42
ZoneFieldSet::O(v) => (Self::ZONE_OFFSET, v.to_raw_options()),
ZoneFieldSet::V(v) => (Self::ZONE_GENERIC, v.to_raw_options()),
ZoneFieldSet::L(v) => (Self::ZONE_LOCATION, v.to_raw_options()),
fn from_zone_field_set(value: ZoneFieldSet, is_standalone: bool) -> (Self, RawOptions) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This serde logic I wrote is kind-of strange. Open to feedback.

Manishearth
Manishearth previously approved these changes Dec 20, 2024
Manishearth
Manishearth previously approved these changes Dec 20, 2024
@sffc sffc removed the request for review from zbraniecki December 20, 2024 01:23
@sffc sffc merged commit 916b14e into unicode-org:main Dec 20, 2024
27 checks passed
@sffc sffc deleted the better-zone-options branch December 20, 2024 01:37
@Nerixyz
Copy link
Contributor

Nerixyz commented Dec 20, 2024

Thank you so much!

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