Skip to content

Commit 8c25981

Browse files
weikengchennpwardberkeley
authored andcommitted
some other comments
1 parent 85cc789 commit 8c25981

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/marlin_pc/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -539,26 +539,26 @@ impl<E: PairingEngine> PolynomialCommitment<E::Fr> for MarlinKZG10<E> {
539539

540540
assert_eq!(degree_bound.is_some(), rand.shifted_rand.is_some());
541541

542-
p += (challenge_j.clone(), polynomial.polynomial());
543-
r += (challenge_j.clone(), &rand.rand);
542+
p += (challenge_j, polynomial.polynomial());
543+
r += (challenge_j, &rand.rand);
544544

545545
if let Some(degree_bound) = degree_bound {
546546
enforce_degree_bound = true;
547547
let shifted_rand = rand.shifted_rand.as_ref().unwrap();
548548
let (witness, shifted_rand_witness) = kzg10::KZG10::compute_witness_polynomial(
549549
polynomial.polynomial(),
550-
point.clone(),
550+
point,
551551
&shifted_rand,
552552
)?;
553553
let challenge_j_1 = opening_challenges(opening_challenge_counter);
554554
opening_challenge_counter += 1;
555555

556556
let shifted_witness = shift_polynomial(ck, &witness, degree_bound);
557557

558-
shifted_w += (challenge_j_1.clone(), &shifted_witness);
559-
shifted_r += (challenge_j_1.clone(), shifted_rand);
558+
shifted_w += (challenge_j_1, &shifted_witness);
559+
shifted_r += (challenge_j_1, shifted_rand);
560560
if let Some(shifted_rand_witness) = shifted_rand_witness {
561-
shifted_r_witness += (challenge_j_1.clone(), &shifted_rand_witness);
561+
shifted_r_witness += (challenge_j_1, &shifted_rand_witness);
562562
}
563563
}
564564
}

0 commit comments

Comments
 (0)