Skip to content

Commit 4ba1964

Browse files
committed
fix null_terminator byte slice problem at src/lib.rs
1 parent 33635fd commit 4ba1964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub use target_info::TargetInfo;
6161

6262
#[cfg(feature="master")]
6363
pub fn set_global_personality_function_name(name: &'static [u8]) {
64-
debug_assert!(name.ends_with(&[b'\0']), "Expecting a NUL-terminated C string");
64+
debug_assert!(name.ends_with(b"\0"), "Expecting a NUL-terminated C string");
6565
unsafe {
6666
gccjit_sys::gcc_jit_set_global_personality_function_name(name.as_ptr() as *const _);
6767
}

0 commit comments

Comments
 (0)