Skip to content

Commit 9ca5fdb

Browse files
author
AlexLB99
committed
formatting fixes
1 parent afb1ee2 commit 9ca5fdb

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • library/core/src/intrinsics

library/core/src/intrinsics/mod.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,23 +4326,26 @@ mod verify {
43264326
#[kani::stub_verified(transmute_unchecked_wrapper)]
43274327
#[kani::should_panic]
43284328
fn should_fail_u32_to_char() {
4329-
let src: u32 = kani::any_where(|x| !core::char::from_u32(*x).is_some()
4330-
);
4329+
let src: u32 = kani::any_where(|x| !core::char::from_u32(*x).is_some());
43314330
let dst: char = unsafe { transmute_unchecked_wrapper(src) };
43324331
}
43334332

43344333
#[kani::proof]
43354334
#[kani::stub_verified(transmute_unchecked_wrapper)]
43364335
fn should_succeed_f32_to_char() {
4337-
let src: f32 = kani::any_where(|x| char::from_u32(unsafe { *(x as *const f32 as *const u32) }).is_some());
4336+
let src: f32 = kani::any_where(|x| {
4337+
char::from_u32(unsafe { *(x as *const f32 as *const u32) }).is_some()
4338+
});
43384339
let dst: char = unsafe { transmute_unchecked_wrapper(src) };
43394340
}
43404341

43414342
#[kani::proof]
43424343
#[kani::stub_verified(transmute_unchecked_wrapper)]
43434344
#[kani::should_panic]
43444345
fn should_fail_f32_to_char() {
4345-
let src: f32 = kani::any_where(|x| !char::from_u32(unsafe { *(x as *const f32 as *const u32) }).is_some());
4346+
let src: f32 = kani::any_where(|x| {
4347+
!char::from_u32(unsafe { *(x as *const f32 as *const u32) }).is_some()
4348+
});
43464349
let dst: char = unsafe { transmute_unchecked_wrapper(src) };
43474350
}
43484351

0 commit comments

Comments
 (0)