Minor: fix a few warnings (#239)

* Minor: fix a few warnings

* Lints
This commit is contained in:
Jakub Nabaglo 2021-09-13 15:42:59 -07:00 committed by GitHub
parent 9ef784a99d
commit de1d5d0ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 7 deletions

View File

@ -5,7 +5,6 @@ use std::iter::{Product, Sum};
use std::ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign};
use crate::field::crandall_field::CrandallField;
use crate::field::field_types::Field;
use crate::field::packed_field::PackedField;
// PackedCrandallAVX2 wraps an array of four u64s, with the new and get methods to convert that
@ -470,7 +469,7 @@ unsafe fn interleave1(x: __m256i, y: __m256i) -> (__m256i, __m256i) {
#[cfg(test)]
mod tests {
use crate::field::crandall_field::CrandallField;
use crate::field::field_types::Field;
use crate::field::packed_crandall_avx2::*;
const TEST_VALS_A: [CrandallField; 4] = [

View File

@ -1,8 +1,7 @@
//! Concrete instantiation of a hash function.
use crate::field::extension_field::Extendable;
use crate::field::field_types::{Field, RichField};
use crate::hash::gmimc::GMiMC;
use crate::field::field_types::RichField;
use crate::hash::hash_types::{HashOut, HashOutTarget};
use crate::iop::target::Target;
use crate::plonk::circuit_builder::CircuitBuilder;

View File

@ -56,7 +56,7 @@ unsafe fn iteration8<const INDEX: usize, const SHIFT: i32>(
) -> [Vecs128; 2]
// 2 vectors of 4 needed to represent entire state.
where
[(); { INDEX + 4 }]: ,
[(); INDEX + 4]: ,
[(); (64 - SHIFT) as usize]: ,
{
// Entire state, rotated by INDEX.
@ -130,8 +130,8 @@ unsafe fn iteration12<const INDEX: usize, const SHIFT: i32>(
) -> [Vecs128; 3]
// 3 vectors of 4 needed to represent entire state.
where
[(); { INDEX + 4 }]: ,
[(); { INDEX + 8 }]: ,
[(); INDEX + 4]: ,
[(); INDEX + 8]: ,
[(); (64 - SHIFT) as usize]: ,
{
// Entire state, rotated by INDEX.