Skip to content

Extract bytes_to_name helper to UTF-8 conversion#42

Merged
dak2 merged 1 commit into
mainfrom
refactor/extract-bytes-to-name-helper
Mar 4, 2026
Merged

Extract bytes_to_name helper to UTF-8 conversion#42
dak2 merged 1 commit into
mainfrom
refactor/extract-bytes-to-name-helper

Conversation

@dak2

@dak2 dak2 commented Mar 4, 2026

Copy link
Copy Markdown
Owner

The pattern String::from_utf8_lossy(x.as_slice()).to_string() was duplicated 17 times across 4 files under analyzer/. Centralizing the conversion into a single helper makes future policy changes (e.g. switching from lossy to strict) a one-line fix.

The pattern `String::from_utf8_lossy(x.as_slice()).to_string()` was
duplicated 17 times across 4 files under analyzer/. Centralizing the
conversion into a single helper makes future policy changes (e.g.
switching from lossy to strict) a one-line fix.
@dak2 dak2 merged commit 4246dee into main Mar 4, 2026
2 checks passed
@dak2 dak2 deleted the refactor/extract-bytes-to-name-helper branch March 4, 2026 15:03
@dak2 dak2 mentioned this pull request Mar 7, 2026
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