Skip to content

feat!: Always print color when color is enabled #136

Merged
epage merged 4 commits intoassert-rs:masterfrom
epage:anstream
Mar 15, 2023
Merged

feat!: Always print color when color is enabled #136
epage merged 4 commits intoassert-rs:masterfrom
epage:anstream

Conversation

@epage
Copy link
Copy Markdown
Contributor

@epage epage commented Mar 15, 2023

This is in anticipation of callers using anstyle_stream to print this
which will "Do The Right Thing"

BREAKING CHANGE:

  • color-auto is gone
  • Displays won't automatically print ANSI color code when
    appropriate but instead format!("{}", case) will never print color
    and format!("{:#}", case) will always print color

epage added 4 commits March 14, 2023 02:25
This is in anticipation of callers using `anstyle_stream` to print this
which will "Do The Right Thing"

BREAKING CHANGE:
- `color-auto` is gone
- `Display`s won't automatically print ANSI color code when
  appropriate but instead `format!("{}", case)` will never print color
  and `format!("{:#}", case)` will always print color
@epage epage force-pushed the anstream branch 2 times, most recently from 63bc051 to b37dbf7 Compare March 15, 2023 14:35
@epage epage merged commit a877a73 into assert-rs:master Mar 15, 2023
@epage epage deleted the anstream branch March 15, 2023 14:43
takumi-earth pushed a commit to earthlings-dev/predicates-rs that referenced this pull request Jan 27, 2026
feat!: Always print color when color is enabled
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