From 891f7fc8924e707c7b2ad46d90e0bba59d38a1e7 Mon Sep 17 00:00:00 2001 From: "Thierry M." Date: Wed, 4 Mar 2026 13:33:00 +0100 Subject: [PATCH] use C-string literal MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Bennet Bleßmann <3877590+Skgland@users.noreply.github.com> --- tests/scryer/issues.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scryer/issues.rs b/tests/scryer/issues.rs index 856da766..6bfd6871 100644 --- a/tests/scryer/issues.rs +++ b/tests/scryer/issues.rs @@ -159,7 +159,7 @@ fn ffi_utf8_panic() { let src = r##" #[unsafe(no_mangle)] extern "C" fn ffi_invalid_utf8_cstr() -> *const core::ffi::c_char { - b"Invalid\xFFUTF8\x00".as_ptr() as *const _ + c"Invalid\xFFUTF8".as_ptr() } "##; -- 2.54.0