mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-05 15:23:06 +00:00
PR feedback
This commit is contained in:
parent
e376196475
commit
683f325413
@ -210,12 +210,9 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
where
|
||||
T: Borrow<Target>,
|
||||
{
|
||||
let mut iter = terms.into_iter();
|
||||
if let Some(first) = iter.next() {
|
||||
iter.fold(*first.borrow(), |acc, t| self.mul(acc, *t.borrow()))
|
||||
} else {
|
||||
self.one()
|
||||
}
|
||||
terms
|
||||
.into_iter()
|
||||
.fold(self.one(), |acc, t| self.mul(acc, *t.borrow()))
|
||||
}
|
||||
|
||||
/// Exponentiate `base` to the power of `2^power_log`.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user