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

impl ExportableProvider for ForkByErrorProvider and add tutorial #5503

Merged
merged 9 commits into from
Sep 19, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented Sep 5, 2024

@sffc sffc requested a review from a team as a code owner September 5, 2024 20:53
Manishearth
Manishearth previously approved these changes Sep 5, 2024
Manishearth
Manishearth previously approved these changes Sep 5, 2024

[features]
std = []
export = ["icu_provider/export", "std"]
Copy link
Member

Choose a reason for hiding this comment

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

It seems incomplete to not implement ExportableProvider on all adapter types.

Copy link
Member

Choose a reason for hiding this comment

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

ForkByMarkerProvider and MultiForkByMarkerProvider are still missing.

Copy link
Member Author

Choose a reason for hiding this comment

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

pub type ForkByMarkerProvider<P0, P1> = ForkByErrorProvider<P0, P1, MarkerNotFoundPredicate>;


[features]
std = []
export = ["icu_provider/export", "std"]
Copy link
Member

Choose a reason for hiding this comment

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

ForkByMarkerProvider and MultiForkByMarkerProvider are still missing.

provider/adapters/src/fork/by_error.rs Outdated Show resolved Hide resolved
Comment on lines +172 to +174
let mut markers = self.0.supported_markers();
markers.extend(self.1.supported_markers());
markers
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let mut markers = self.0.supported_markers();
markers.extend(self.1.supported_markers());
markers
[&self.0, &self.1].iter().map(|p| p.supported_markers()).collect()

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure

Manishearth
Manishearth previously approved these changes Sep 18, 2024
Co-authored-by: Robert Bastian <4706271+robertbastian@users.noreply.github.com>
robertbastian
robertbastian previously approved these changes Sep 19, 2024
@sffc sffc merged commit 3694bfe into unicode-org:main Sep 19, 2024
28 checks passed
@sffc sffc deleted the exportable-impl branch September 19, 2024 16:00
@sffc sffc mentioned this pull request Sep 19, 2024
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