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 {Default, FromStr} for ColorChoice #42

Closed
wants to merge 1 commit into from

Conversation

jyn514
Copy link
Contributor

@jyn514 jyn514 commented Jun 6, 2021

This allows x.py in rust-lang/rust to remove a wrapper type around
ColorChoice. The defaults here seem reasonable; I chose kebab-case for
parsing AlwaysAnsi but I'm happy to switch it.

I am also ok with just closing this if you don't think it's a good fit, the wrapper type isn't hard to maintain.

cc rust-lang/rust#86022

This allows x.py in rust-lang/rust to remove a wrapper type around
ColorChoice. The defaults here seem reasonable; I chose kebab-case for
parsing `AlwaysAnsi` but I'm happy to switch it.
BurntSushi pushed a commit that referenced this pull request Jan 15, 2023
This allows x.py in rust-lang/rust to remove a wrapper type around
ColorChoice. The defaults here seem reasonable; I chose kebab-case for
parsing `AlwaysAnsi` but I'm happy to switch it.

This also updates the top-level atty example in the crate docs to use
the new color choice parser.

Closes #42
@jyn514 jyn514 deleted the more-traits branch January 15, 2023 18:24
@jyn514
Copy link
Contributor Author

jyn514 commented Jan 15, 2023

Thank you!

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.

1 participant