Skip to content

Commit 4ad2b31

Browse files
committed
fmt
1 parent c95d170 commit 4ad2b31

File tree

1 file changed

+6
-6
lines changed
  • library/core/src/convert

1 file changed

+6
-6
lines changed

library/core/src/convert/num.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ mod verify {
614614
#[kani::proof]
615615
pub fn $harness_pass() {
616616
let x_inner: $source = kani::any_where(|&v| {
617-
(v > 0 && (v as u128) <= (<$target>::MAX as u128)) ||
618-
(v < 0 && (v as i128) >= (<$target>::MIN as i128))
617+
(v > 0 && (v as u128) <= (<$target>::MAX as u128))
618+
|| (v < 0 && (v as i128) >= (<$target>::MIN as i128))
619619
});
620620
let x = NonZero::new(x_inner).unwrap();
621621
let _ = NonZero::<$target>::try_from(x).unwrap();
@@ -625,8 +625,8 @@ mod verify {
625625
#[kani::should_panic]
626626
pub fn $harness_panic() {
627627
let x_inner: $source = kani::any_where(|&v| {
628-
(v > 0 && (v as u128) > (<$target>::MAX as u128)) ||
629-
(v < 0 && (v as i128) < (<$target>::MIN as i128))
628+
(v > 0 && (v as u128) > (<$target>::MAX as u128))
629+
|| (v < 0 && (v as i128) < (<$target>::MIN as i128))
630630
});
631631
let x = NonZero::new(x_inner).unwrap();
632632
let _ = NonZero::<$target>::try_from(x).unwrap();
@@ -635,10 +635,10 @@ mod verify {
635635
($source:ty => $target:ty, $harness_infallible:ident,) => {
636636
#[kani::proof]
637637
pub fn $harness_infallible() {
638-
let x: NonZero::<$source> = kani::any();
638+
let x: NonZero<$source> = kani::any();
639639
let _ = NonZero::<$target>::try_from(x).unwrap();
640640
}
641-
}
641+
};
642642
}
643643

644644
// unsigned non-zero integer -> unsigned non-zero integer fallible

0 commit comments

Comments
 (0)