Fix CI failure from Clippy byte_char_slices lint#63
Merged
Conversation
Agent-Logs-Url: https://github.com/Nugine/const-str/sessions/01540070-51d7-4725-81c2-b3fa0b668c4b Co-authored-by: Nugine <30099658+Nugine@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Nugine
April 26, 2026 15:57
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a new Clippy byte_char_slices lint failure in the const-str crate’s CTFE StrBuf tests by switching a byte-by-byte array literal to an equivalent byte-string literal dereference.
Changes:
- Replace
[b'a', b'b', b'c']with*b"abc"in aStrBuf::new_uncheckedtest case to satisfy Clippy.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #63 +/- ##
=======================================
Coverage 94.86% 94.86%
=======================================
Files 37 37
Lines 3855 3855
Branches 3855 3855
=======================================
Hits 3657 3657
Misses 171 171
Partials 27 27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A scheduled CI run started failing in the
developjob after Clippy flagged a test byte array literal asbyte_char_slices. The failure was isolated to a single test helper inStrBufcoverage.Problem
clippy::all:Change
Scope
crates/const-str/src/__ctfe/str.rs