mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 06:43:07 +00:00
clippy fix: 'needless borrow'
This commit is contained in:
parent
c80bc9f2b4
commit
dc69d6afbd
@ -102,13 +102,13 @@ impl<F: RichField + Extendable<D>, const D: usize> Gate<F, D>
|
|||||||
for (i, point) in coset.into_iter().enumerate() {
|
for (i, point) in coset.into_iter().enumerate() {
|
||||||
let value = vars.get_local_ext_algebra(self.wires_value(i));
|
let value = vars.get_local_ext_algebra(self.wires_value(i));
|
||||||
let computed_value = interpolant.eval_base(point);
|
let computed_value = interpolant.eval_base(point);
|
||||||
constraints.extend(&(value - computed_value).to_basefield_array());
|
constraints.extend((value - computed_value).to_basefield_array());
|
||||||
}
|
}
|
||||||
|
|
||||||
let evaluation_point = vars.get_local_ext_algebra(self.wires_evaluation_point());
|
let evaluation_point = vars.get_local_ext_algebra(self.wires_evaluation_point());
|
||||||
let evaluation_value = vars.get_local_ext_algebra(self.wires_evaluation_value());
|
let evaluation_value = vars.get_local_ext_algebra(self.wires_evaluation_value());
|
||||||
let computed_evaluation_value = interpolant.eval(evaluation_point);
|
let computed_evaluation_value = interpolant.eval(evaluation_point);
|
||||||
constraints.extend(&(evaluation_value - computed_evaluation_value).to_basefield_array());
|
constraints.extend((evaluation_value - computed_evaluation_value).to_basefield_array());
|
||||||
|
|
||||||
constraints
|
constraints
|
||||||
}
|
}
|
||||||
@ -153,7 +153,7 @@ impl<F: RichField + Extendable<D>, const D: usize> Gate<F, D>
|
|||||||
let value = vars.get_local_ext_algebra(self.wires_value(i));
|
let value = vars.get_local_ext_algebra(self.wires_value(i));
|
||||||
let computed_value = interpolant.eval_scalar(builder, point);
|
let computed_value = interpolant.eval_scalar(builder, point);
|
||||||
constraints.extend(
|
constraints.extend(
|
||||||
&builder
|
builder
|
||||||
.sub_ext_algebra(value, computed_value)
|
.sub_ext_algebra(value, computed_value)
|
||||||
.to_ext_target_array(),
|
.to_ext_target_array(),
|
||||||
);
|
);
|
||||||
@ -163,7 +163,7 @@ impl<F: RichField + Extendable<D>, const D: usize> Gate<F, D>
|
|||||||
let evaluation_value = vars.get_local_ext_algebra(self.wires_evaluation_value());
|
let evaluation_value = vars.get_local_ext_algebra(self.wires_evaluation_value());
|
||||||
let computed_evaluation_value = interpolant.eval(builder, evaluation_point);
|
let computed_evaluation_value = interpolant.eval(builder, evaluation_point);
|
||||||
constraints.extend(
|
constraints.extend(
|
||||||
&builder
|
builder
|
||||||
.sub_ext_algebra(evaluation_value, computed_evaluation_value)
|
.sub_ext_algebra(evaluation_value, computed_evaluation_value)
|
||||||
.to_ext_target_array(),
|
.to_ext_target_array(),
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user