Skip to content

Commit 8fad0cb

Browse files
committed
benchmarks: clippy
1 parent 0ef1927 commit 8fad0cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bench/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn bench_late_error<M: Measurement>(c: &mut Criterion<M>, bench_fn: BenchFn) {
101101
}
102102

103103
fn scale_to_one_mib(input: &[u8]) -> Vec<u8> {
104-
input.repeat((1024 * 1024 + input.len() - 1) / input.len())
104+
input.repeat((1024_usize * 1024).div_ceil(input.len()))
105105
}
106106

107107
fn get_valid_slice_of_len_or_more(s: &[u8], len: usize) -> &[u8] {

0 commit comments

Comments
 (0)