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 FromStr for CompactStr #20

Merged
merged 1 commit into from
Oct 29, 2021
Merged

impl FromStr for CompactStr #20

merged 1 commit into from
Oct 29, 2021

Conversation

ParkMyCar
Copy link
Owner

Fixes #18

This PR implements the std::str::FromStr trait for CompactStr, where the error type is core::convert::Infallible. The ergonomics here aren't great because despite making the error type "infallible" we still have to call unwrap. Once the never type, !, is stabilized, we can use that instead.

@ParkMyCar
Copy link
Owner Author

ParkMyCar commented Oct 29, 2021

Test failure on X-Plat / macOS seemed to be an infra issue. Trying again here
Edit: CI run came back ✅

@ParkMyCar ParkMyCar merged commit 1b5aa36 into main Oct 29, 2021
@ParkMyCar ParkMyCar deleted the feature/fromstr branch October 29, 2021 21:59
nottirb pushed a commit to nottirb/compact_str that referenced this pull request May 15, 2022
Adding code for mayhem github action integration
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.

Consider impl trait FromStr for CompactStr
1 participant