mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-06 15:53:10 +00:00
Tiny cleanup
This commit is contained in:
parent
d11bcd1928
commit
35c8643681
@ -247,7 +247,7 @@ impl DivAssign for QuarticCrandallField {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::field::extension_field::quartic::QuarticCrandallField;
|
||||
use crate::field::extension_field::{FieldExtension, Frobenius, OEF};
|
||||
use crate::field::extension_field::{FieldExtension, Frobenius};
|
||||
use crate::field::field::Field;
|
||||
|
||||
fn exp_naive<F: Field>(x: F, power: u128) -> F {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
use std::convert::{TryFrom, TryInto};
|
||||
use std::ops::Range;
|
||||
use std::convert::TryInto;
|
||||
|
||||
use itertools::Itertools;
|
||||
use num::Integer;
|
||||
@ -7,7 +6,6 @@ use num::Integer;
|
||||
use crate::circuit_builder::CircuitBuilder;
|
||||
use crate::field::extension_field::target::{ExtensionAlgebraTarget, ExtensionTarget};
|
||||
use crate::field::extension_field::{Extendable, OEF};
|
||||
use crate::field::field::Field;
|
||||
use crate::gates::arithmetic::ArithmeticExtensionGate;
|
||||
use crate::generator::SimpleGenerator;
|
||||
use crate::target::Target;
|
||||
|
||||
@ -158,9 +158,10 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rotate() {
|
||||
fn test_rotate() -> Result<()> {
|
||||
for len in 1..5 {
|
||||
test_rotate_given_len(len);
|
||||
test_rotate_given_len(len)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
use crate::field::extension_field::Extendable;
|
||||
use crate::field::field::Field;
|
||||
use crate::gates::gate::{Gate, GateRef};
|
||||
use crate::gates::gate::GateRef;
|
||||
use crate::polynomial::polynomial::{PolynomialCoeffs, PolynomialValues};
|
||||
use crate::util::{log2_ceil, transpose};
|
||||
use crate::vars::EvaluationVars;
|
||||
|
||||
@ -421,7 +421,7 @@ mod tests {
|
||||
local_wires: &wires,
|
||||
};
|
||||
|
||||
let ev = gate.0.eval_unfiltered((vars));
|
||||
let ev = gate.0.eval_unfiltered(vars);
|
||||
|
||||
let wires_t = builder.add_virtual_extension_targets(Gate::end());
|
||||
for i in 0..Gate::end() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user