Skip to content

Commit b694ff3

Browse files
committed
clippy
1 parent 1b9c824 commit b694ff3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

crates/backend/koala-bear/src/benchmark_poseidons.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn bench_poseidon() {
1919
let poseidon1_16 = default_koalabear_poseidon1_16();
2020

2121
// warming
22-
let mut state_16: [crate::PackedMontyField31Neon<crate::KoalaBearParameters>; 16] = [FPacking::ZERO; 16];
22+
let mut state_16: [FPacking; 16] = [FPacking::ZERO; 16];
2323
for _ in 0..1 << 15 {
2424
poseidon1_16.compress_in_place(&mut state_16);
2525
}

crates/lean_vm/src/isa/hint.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ impl CustomHint {
159159
let chunk_size = args[3].read_value(ctx.memory, ctx.fp)?.to_usize();
160160
assert!(24_usize.is_multiple_of(chunk_size));
161161
let mut memory_index_decomposed = decomposed_ptr;
162+
#[allow(clippy::explicit_counter_loop)]
162163
for i in 0..24 / chunk_size {
163164
let value = F::from_usize((value >> (chunk_size * i)) & ((1 << chunk_size) - 1));
164165
ctx.memory.set(memory_index_decomposed, value)?;

0 commit comments

Comments
 (0)