mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 00:03:10 +00:00
Clippy
This commit is contained in:
parent
5061b2d110
commit
6a50c0fc4e
@ -1,7 +1,5 @@
|
|||||||
use std::borrow::Borrow;
|
use std::borrow::Borrow;
|
||||||
|
|
||||||
use itertools::Itertools;
|
|
||||||
|
|
||||||
use crate::field::extension_field::Extendable;
|
use crate::field::extension_field::Extendable;
|
||||||
use crate::field::field_types::{PrimeField, RichField};
|
use crate::field::field_types::{PrimeField, RichField};
|
||||||
use crate::gates::arithmetic_base::ArithmeticGate;
|
use crate::gates::arithmetic_base::ArithmeticGate;
|
||||||
@ -206,7 +204,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
|||||||
terms
|
terms
|
||||||
.iter()
|
.iter()
|
||||||
.copied()
|
.copied()
|
||||||
.fold1(|acc, t| self.mul(acc, t))
|
.reduce(|acc, t| self.mul(acc, t))
|
||||||
.unwrap_or_else(|| self.one())
|
.unwrap_or_else(|| self.one())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
use itertools::Itertools;
|
|
||||||
|
|
||||||
use crate::field::extension_field::target::{ExtensionAlgebraTarget, ExtensionTarget};
|
use crate::field::extension_field::target::{ExtensionAlgebraTarget, ExtensionTarget};
|
||||||
use crate::field::extension_field::FieldExtension;
|
use crate::field::extension_field::FieldExtension;
|
||||||
use crate::field::extension_field::{Extendable, OEF};
|
use crate::field::extension_field::{Extendable, OEF};
|
||||||
@ -301,7 +299,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
|||||||
terms
|
terms
|
||||||
.iter()
|
.iter()
|
||||||
.copied()
|
.copied()
|
||||||
.fold1(|acc, t| self.mul_extension(acc, t))
|
.reduce(|acc, t| self.mul_extension(acc, t))
|
||||||
.unwrap_or_else(|| self.one_extension())
|
.unwrap_or_else(|| self.one_extension())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user