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

Re-use UnvalidatedStr impls in NormalizedPropertyNameStr #3498

Merged
merged 4 commits into from
Jun 7, 2023

Conversation

sffc
Copy link
Member

@sffc sffc commented Jun 7, 2023

I was going to move it into the zerovec crate but the exact string comparison function is very specific to icu_properties and it was too cumbersome to make the comparison function generic.

I plan to copy this code again into the icu_timezones crate to fix #2909

@sffc sffc requested a review from Manishearth June 7, 2023 02:29
@sffc sffc requested a review from a team as a code owner June 7, 2023 02:29
Manishearth
Manishearth previously approved these changes Jun 7, 2023
} else {
serializer.serialize_bytes(&self.0)
}
self.0.serialize(serializer)
Copy link
Member

Choose a reason for hiding this comment

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

question: does derive not work here (perhaps due to the DST?)

Copy link
Member Author

Choose a reason for hiding this comment

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

derive works; thanks!

@sffc sffc merged commit 5405ea2 into unicode-org:main Jun 7, 2023
@sffc sffc deleted the simplify-NormalizedPropertyNameStr branch June 7, 2023 06:03
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.

Retrieve Canonical TZIDs
2 participants