Skip to content

centralize color_for_status in core.rs#816

Merged
ryanfowler merged 1 commit into
mainfrom
centralize-color-for-status
Jul 1, 2026
Merged

centralize color_for_status in core.rs#816
ryanfowler merged 1 commit into
mainfrom
centralize-color-for-status

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Removes two duplicate definitions of color_for_status from src/http/metadata.rs and src/websocket/mod.rs, replacing them with a single pub fn in src/core.rs. Adds a pub(crate) re-export in src/http/mod.rs so that existing call sites in src/http/response/metadata.rs and src/http/retry.rs continue to work via use super::*.

Removes two duplicate definitions of color_for_status from
src/http/metadata.rs and src/websocket/mod.rs, replacing them with a
single pub fn in src/core.rs. Adds a pub(crate) re-export in
src/http/mod.rs so that existing call sites in
src/http/response/metadata.rs and src/http/retry.rs continue to work
via use super::*.
@ryanfowler ryanfowler merged commit 592eeff into main Jul 1, 2026
4 checks passed
@ryanfowler ryanfowler deleted the centralize-color-for-status branch July 1, 2026 03: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.

1 participant