Skip to content

Commit

Permalink
replace clone with a borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagician committed Mar 12, 2024
1 parent 453df5b commit e20f67e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions poly-commit/src/linear_codes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use ark_std::string::ToString;
use ark_std::vec::Vec;

#[cfg(feature = "parallel")]
use rayon::iter::{IntoParallelIterator, IntoParallelRefIterator, ParallelIterator};
use rayon::iter::{IntoParallelRefIterator, ParallelIterator};

mod utils;

Expand Down Expand Up @@ -252,9 +252,9 @@ where

// 2. Create the Merkle tree from the hashes of each column.
let ext_mat_cols = ext_mat.cols();
let leaves: Vec<H::Output> = cfg_into_iter!(ext_mat_cols)
let leaves: Vec<H::Output> = cfg_iter!(ext_mat_cols)
.map(|col| {
H::evaluate(ck.col_hash_params(), col.clone())
H::evaluate(ck.col_hash_params(), col.borrow())
.map_err(|_| Error::HashingError)
.unwrap()
})
Expand Down

0 comments on commit e20f67e

Please sign in to comment.