mirror of https://github.com/zcash/halo2.git
clippy: Remove useless actions
- Dropping a reference does nothing. - Dropping a Copy type drops a copy. - No need to clone the last usage of a variable.
This commit is contained in:
parent
6983bd1bbc
commit
6dd7595438
|
@ -63,10 +63,8 @@ pub fn create_proof<C: CurveAffine, T: TranscriptWrite<C>>(
|
|||
let mut final_poly = s_poly * iota + px;
|
||||
let v = eval_polynomial(&final_poly, x);
|
||||
final_poly[0] = final_poly[0] - &v;
|
||||
drop(px);
|
||||
let blind = s_poly_blind * Blind(iota) + blind;
|
||||
let mut blind = blind.0;
|
||||
drop(s_poly_blind);
|
||||
|
||||
// Initialize the vector `a` as the coefficients of the polynomial,
|
||||
// rounding up to the parameters.
|
||||
|
|
|
@ -104,7 +104,7 @@ where
|
|||
let x_4 = ChallengeX4::get(transcript);
|
||||
|
||||
let (f_poly, f_blind_try) = q_polys.iter().zip(q_blinds.iter()).fold(
|
||||
(f_poly.clone(), f_blind),
|
||||
(f_poly, f_blind),
|
||||
|(f_poly, f_blind), (poly, blind)| {
|
||||
(
|
||||
f_poly * *x_4 + poly.as_ref().unwrap(),
|
||||
|
|
Loading…
Reference in New Issue