Skip to content

Commit 7357134

Browse files
committed
Fix new clippy warning
Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
1 parent 2bf2fa6 commit 7357134

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/hyperlight_guest_bin/src/exceptions/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const _: () = assert!(size_of::<Context>() == 32 + 512 + 120 + 8);
7373
// as specified in the x86-64 ELF System V psABI specification, Section 3.2.2:
7474
//
7575
// https://gitlab.com/x86-psABIs/x86-64-ABI/-/jobs/artifacts/master/raw/x86-64-ABI/abi.pdf?job=build
76-
const _: () = assert!((size_of::<Context>() + size_of::<ExceptionInfo>()) % 16 == 0);
76+
const _: () = assert!((size_of::<Context>() + size_of::<ExceptionInfo>()).is_multiple_of(16));
7777

7878
/// Array of installed exception handlers for vectors 0-30.
7979
///

src/hyperlight_host/tests/integration_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ fn interrupt_random_kill_stress_test() {
12191219

12201220
// Progress reporting
12211221
let current_total = total_iterations_clone.load(Ordering::Relaxed);
1222-
if current_total % 5000 == 0 {
1222+
if current_total.is_multiple_of(5000) {
12231223
println!(
12241224
"Progress: {}/{} iterations completed",
12251225
current_total,

0 commit comments

Comments
 (0)