From 501498e0be29c676281c58839630c75afb8461d5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Apr 2026 14:56:57 +0000 Subject: [PATCH] fix: satisfy new clippy byte string lint 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> --- crates/const-str/src/__ctfe/str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/const-str/src/__ctfe/str.rs b/crates/const-str/src/__ctfe/str.rs index d1219cb..a8e8a54 100644 --- a/crates/const-str/src/__ctfe/str.rs +++ b/crates/const-str/src/__ctfe/str.rs @@ -74,7 +74,7 @@ mod tests { assert_eq!(buf_unicode.as_str(), "你好!"); // Test new_unchecked - let raw_buf = [b'a', b'b', b'c']; + let raw_buf = *b"abc"; let buf_unsafe: StrBuf<3> = unsafe { StrBuf::new_unchecked(raw_buf) }; assert_eq!(buf_unsafe.as_str(), "abc"); }