minor: format

This commit is contained in:
gohome001 2025-04-25 17:02:08 +08:00
parent 9031c86009
commit 2ec065062a

View file

@ -816,24 +816,22 @@ mod tests {
check(
r#"
fn foo() {
unsafe fn this_is_unsafe_function() {
}
unsafe fn this_is_unsafe_function() {}
unsa$0fe {
//^^^^^^
let raw_ptr = &42 as *const i32;
let val = *raw_ptr;
//^^^^^^^^
let mut_ptr = &mut 5 as *mut i32;
*mut_ptr = 10;
//^^^^^^^^
this_is_unsafe_function();
//^^^^^^^^^^^^^^^^^^^^^^^^^
}
}
"#,
);