Skip to content

Commit 1d4602e

Browse files
committed
minor: format
1 parent e525239 commit 1d4602e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

crates/ide/src/highlight_related.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -816,24 +816,22 @@ mod tests {
816816
check(
817817
r#"
818818
fn foo() {
819-
unsafe fn this_is_unsafe_function() {
820-
}
819+
unsafe fn this_is_unsafe_function() {}
821820
822-
823821
unsa$0fe {
824822
//^^^^^^
825823
let raw_ptr = &42 as *const i32;
826824
let val = *raw_ptr;
827825
//^^^^^^^^
828-
826+
829827
let mut_ptr = &mut 5 as *mut i32;
830828
*mut_ptr = 10;
831829
//^^^^^^^^
832-
830+
833831
this_is_unsafe_function();
834832
//^^^^^^^^^^^^^^^^^^^^^^^^^
835833
}
836-
834+
837835
}
838836
"#,
839837
);

0 commit comments

Comments
 (0)