Skip to content

Merge the code formatting traits into one - #422

Merged
stepchowfun merged 2 commits into
mainfrom
unify-code-str
Oct 7, 2026
Merged

stepchowfun merged 2 commits into
mainfrom
unify-code-str

Conversation

@stepchowfun

Copy link
Copy Markdown
Owner

CodePath and CodeStr each had a single method for formatting code-like text for diagnostics. They're now one trait, CodeStr, with an impl for each type it formats, so call sites use code_str() whether they're formatting a string or a path. There's no change in behavior.

Status: Ready

Fixes: N/A

`CodePath` and `CodeStr` each had a single method for formatting code-like
text for diagnostics. They're now one trait, `CodeStr`, with an impl for
each type it formats, so call sites use `code_str()` whether they're
formatting a string or a path.
The Linux-only import of `CodePath` became a second import of `CodeStr`,
which the module already imports on every platform.
@stepchowfun
stepchowfun merged commit fa462d4 into main Oct 7, 2026
6 checks passed
@stepchowfun
stepchowfun deleted the unify-code-str branch October 7, 2026 09:59
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