Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Mar 14, 2024
1 parent 5aa0058 commit de5ee29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion snark-verifier/src/loader/evm/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ impl<F: PrimeField<Repr = [u8; 0x20]>> ScalarLoader<F> for Rc<EvmLoader> {

let initial_value = loader.push(products.first().unwrap());
let mut code = format!("let prod := {initial_value}\n");
for (_, (value, product)) in values.iter().zip(products.iter()).skip(1).enumerate() {
for (value, product) in values.iter().zip(products.iter()).skip(1) {
let v = loader.push(value);
let ptr = product.ptr();
code.push_str(
Expand Down
8 changes: 4 additions & 4 deletions snark-verifier/src/util/hash/poseidon/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ use crate::{halo2_curves::bn256::Fr, loader::native::NativeLoader};
fn test_mds() {
let spec = OptimizedPoseidonSpec::<Fr, 3, 2>::new::<8, 57, 0>();

let mds = vec![
vec![
let mds = [
[
"7511745149465107256748700652201246547602992235352608707588321460060273774987",
"10370080108974718697676803824769673834027675643658433702224577712625900127200",
"19705173408229649878903981084052839426532978878058043055305024233888854471533",
],
vec![
[
"18732019378264290557468133440468564866454307626475683536618613112504878618481",
"20870176810702568768751421378473869562658540583882454726129544628203806653987",
"7266061498423634438633389053804536045105766754026813321943009179476902321146",
],
vec![
[
"9131299761947733513298312097611845208338517739621853568979632113419485819303",
"10595341252162738537912664445405114076324478519622938027420701542910180337937",
"11597556804922396090267472882856054602429588299176362916247939723151043581408",
Expand Down

0 comments on commit de5ee29

Please sign in to comment.