Skip to content

Commit 0a26f69

Browse files
committed
clippy
1 parent 5005a47 commit 0a26f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/vm/src/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl Memory {
180180
}
181181

182182
pub fn set_vectorized_slice(&mut self, index: usize, value: &[F]) -> Result<(), RunnerError> {
183-
assert!(value.len() % DIMENSION == 0);
183+
assert!(value.len().is_multiple_of(DIMENSION));
184184
for (i, v) in value.iter().enumerate() {
185185
let idx = DIMENSION * index + i;
186186
self.set(idx, *v)?;

0 commit comments

Comments
 (0)