Skip to content

Commit fd140ac

Browse files
committed
vmm: clippy: fix manual_is_multiple_of
Fix the clippy error in auto converge interation increasing.
1 parent ecb992e commit fd140ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vmm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ impl Vmm {
11601160
false
11611161
} else {
11621162
let iteration = s.iteration - AUTO_CONVERGE_ITERATION_DELAY;
1163-
iteration % AUTO_CONVERGE_ITERATION_INCREASE == 0
1163+
iteration.is_multiple_of(AUTO_CONVERGE_ITERATION_INCREASE)
11641164
}
11651165
}
11661166

0 commit comments

Comments
 (0)