Skip to content

Commit 89c325c

Browse files
committed
Update tests
1 parent 2e4b246 commit 89c325c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/out/unsafe/strchr_c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn main() {
1212
}
1313
}
1414
unsafe fn main_0() -> i32 {
15-
let mut s: *const u8 = (b"hello world\0".as_ptr().cast_mut()).cast_const();
15+
let mut s: *const u8 = b"hello world\0".as_ptr().cast_mut().cast_const();
1616
let mut r: *mut u8 = libc::strchr(s as *const i8, ('w' as i32)) as *mut u8;
1717
assert!((((!((r).is_null())) as i32) != 0));
1818
assert!((((((*r) as i32) == ('w' as i32)) as i32) != 0));

0 commit comments

Comments
 (0)