From e00112b92f4a7e5fbc190760854ac2eed6622abc Mon Sep 17 00:00:00 2001 From: "Thierry M." Date: Wed, 4 Mar 2026 15:01:23 +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/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scryer/ffi.rs b/tests/scryer/ffi.rs index bbc24c50..f91be5e2 100644 --- a/tests/scryer/ffi.rs +++ b/tests/scryer/ffi.rs @@ -311,7 +311,7 @@ fn ffi_utf8_panic() { 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