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

Error::new takes a Display rather than a StyledStr #4862

Open
2 tasks done
epage opened this issue Apr 26, 2023 · 1 comment
Open
2 tasks done

Error::new takes a Display rather than a StyledStr #4862

epage opened this issue Apr 26, 2023 · 1 comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies M-breaking-change Meta: Implementing or merging this will introduce a breaking change. S-waiting-on-design Status: Waiting on user-facing design to be resolved before implementing
Milestone

Comments

@epage
Copy link
Member

epage commented Apr 26, 2023

Please complete the following tasks

Rust Version

1.69

Clap Version

4.2.4

Minimal reproducible code

N/A

Steps to reproduce the bug with the above code

N/A

Actual Behaviour

The API is specified as not allowing user formatted text

Expected Behaviour

The API is specified to accept user formatted text

Additional Context

No response

Debug Output

No response

@epage epage added C-bug Category: Updating dependencies M-breaking-change Meta: Implementing or merging this will introduce a breaking change. A-help Area: documentation, including docs.rs, readme, examples, etc... S-waiting-on-design Status: Waiting on user-facing design to be resolved before implementing labels Apr 26, 2023
@epage epage added this to the 5.0 milestone Apr 26, 2023
@epage
Copy link
Member Author

epage commented Apr 26, 2023

As a workaround, it looks like it should work to pass in styled text even if the API doesn't specify it accepts it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-help Area: documentation, including docs.rs, readme, examples, etc... C-bug Category: Updating dependencies M-breaking-change Meta: Implementing or merging this will introduce a breaking change. S-waiting-on-design Status: Waiting on user-facing design to be resolved before implementing
Projects
None yet
Development

No branches or pull requests

1 participant