Skip to content

anstyle-git: RGB colors with 3 hex digits should scale colors#331

Merged
epage merged 2 commits into
rust-cli:mainfrom
joshtriplett:anstyle-git-refactor
Jun 26, 2026
Merged

anstyle-git: RGB colors with 3 hex digits should scale colors#331
epage merged 2 commits into
rust-cli:mainfrom
joshtriplett:anstyle-git-refactor

Conversation

@joshtriplett

@joshtriplett joshtriplett commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Found a bug while doing some refactoring: RGB colors with 3 hex digits should scale colors, such that #abc is equivalent to #aabbcc.


Worked on this in preparation for moving parse_hex_color to somewhere more general than anstyle-git.

@joshtriplett joshtriplett force-pushed the anstyle-git-refactor branch from 412a3e5 to 4f1e297 Compare June 26, 2026 07:52
@joshtriplett joshtriplett changed the title anstyle-git: Minor refactoring anstyle-git: RGB colors with 3 hex digits should scale colors Jun 26, 2026
@joshtriplett joshtriplett force-pushed the anstyle-git-refactor branch from 4f1e297 to 2ab4058 Compare June 26, 2026 08:06
@joshtriplett joshtriplett force-pushed the anstyle-git-refactor branch from 2ab4058 to cdb527a Compare June 26, 2026 08:27
@joshtriplett

Copy link
Copy Markdown
Contributor Author

Dropped one of the refactor commits to avoid bumping MSRV.

@epage

epage commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@epage epage merged commit 7e37ff9 into rust-cli:main Jun 26, 2026
20 of 22 checks passed
@joshtriplett joshtriplett deleted the anstyle-git-refactor branch June 26, 2026 16:37
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.

2 participants