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

Add execute_winapi on SetStyle to fix Windows compilation #690

Merged
merged 2 commits into from Jul 26, 2022

Conversation

groves
Copy link
Contributor

@groves groves commented Jul 24, 2022

Compilation on Windows is failing for me currently with this error:

error[E0046]: not all trait items implemented, missing: `execute_winapi`
   --> src\style.rs:351:1

I believe #687 introduced the problem.

Reading execute_fmt, I believe it'll call is_ansi_code_supported on each of the subcommands, so this fix should be good.

@groves groves requested a review from TimonPost as a code owner July 24, 2022 22:03
@groves groves force-pushed the SetStyle_windows_compilation branch from fafe437 to e4d16b1 Compare July 25, 2022 13:56
@groves
Copy link
Contributor Author

groves commented Jul 25, 2022

#688 broke Windows compilation, too. I've added a fix for it to this branch.

@groves groves mentioned this pull request Jul 25, 2022
@TimonPost
Copy link
Member

Oh thanks for patching! Must have slipped through in a previous PR.

@TimonPost TimonPost merged commit c6a8952 into crossterm-rs:master Jul 26, 2022
@groves groves deleted the SetStyle_windows_compilation branch July 26, 2022 17:16
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.

None yet

2 participants