Skip to content

Commit 519099a

Browse files
committed
add unsafe block to fix warning, c.f. rust-lang/rust#112038
1 parent 5e0c504 commit 519099a

File tree

1 file changed

+1
-1
lines changed
  • tests/script-based-pre/cargo_autoharness_contracts/src

1 file changed

+1
-1
lines changed

tests/script-based-pre/cargo_autoharness_contracts/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod should_pass {
4444
// Test that we can autoharness functions for unsafe functions with contracts
4545
#[kani::requires(!left.overflowing_mul(rhs).1)]
4646
unsafe fn unchecked_mul(left: u8, rhs: u8) -> u8 {
47-
left.unchecked_mul(rhs)
47+
unsafe { left.unchecked_mul(rhs) }
4848
}
4949
}
5050

0 commit comments

Comments
 (0)