Skip to content

Replace loc_to_str with .as_slice() for inline comparisons#838

Merged
reese merged 1 commit intotrunkfrom
reese-simple-loc-comparisons
Feb 28, 2026
Merged

Replace loc_to_str with .as_slice() for inline comparisons#838
reese merged 1 commit intotrunkfrom
reese-simple-loc-comparisons

Conversation

@reese
Copy link
Collaborator

@reese reese commented Feb 28, 2026

I'm gradually winding down the usages of UTF-8 helpers, and these are pretty straightforward byte comparisons, so we can just compare the byte slices directly.

@reese reese merged commit 05afb6d into trunk Feb 28, 2026
8 checks passed
@reese reese deleted the reese-simple-loc-comparisons branch February 28, 2026 23:06
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