edition = 2021 (#370)

* edition = 2021

Doesn't affect anything for us as far as I've noticed.

* imports
This commit is contained in:
Daniel Lubarov 2021-11-17 14:43:54 -08:00 committed by GitHub
parent 8772073b36
commit 9b55ff9e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 1 additions and 37 deletions

View File

@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
repository = "https://github.com/mir-protocol/plonky2"
keywords = ["cryptography", "SNARK", "FRI"]
categories = ["cryptography"]
edition = "2018"
edition = "2021"
default-run = "bench_recursion"
[dependencies]

View File

@ -1,5 +1,3 @@
use std::convert::TryInto;
use crate::field::field_types::{Field, PrimeField};
pub mod algebra;

View File

@ -1,4 +1,3 @@
use std::convert::{TryFrom, TryInto};
use std::ops::Range;
use crate::field::extension_field::algebra::ExtensionAlgebra;

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::fmt::{Debug, Display};
use std::hash::Hash;
use std::iter::{Product, Sum};

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::fmt;
use std::fmt::{Debug, Display, Formatter};
use std::hash::{Hash, Hasher};

View File

@ -1,5 +1,3 @@
use std::convert::TryInto;
use crate::field::extension_field::target::{ExtensionAlgebraTarget, ExtensionTarget};
use crate::field::extension_field::FieldExtension;
use crate::field::extension_field::{Extendable, OEF};
@ -531,8 +529,6 @@ pub(crate) struct ExtensionArithmeticOperation<F: PrimeField + Extendable<D>, co
#[cfg(test)]
mod tests {
use std::convert::TryInto;
use anyhow::Result;
use crate::field::extension_field::algebra::ExtensionAlgebra;

View File

@ -1,5 +1,3 @@
use std::convert::TryInto;
use crate::field::extension_field::Extendable;
use crate::field::field_types::RichField;
use crate::gates::gmimc::GMiMCGate;

View File

@ -328,8 +328,6 @@ impl<F: RichField + Extendable<D> + GMiMC<WIDTH>, const D: usize, const WIDTH: u
#[cfg(test)]
mod tests {
use std::convert::TryInto;
use anyhow::Result;
use crate::field::field_types::Field;

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::marker::PhantomData;
use std::ops::Range;

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::marker::PhantomData;
use std::ops::Range;

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::marker::PhantomData;
use crate::field::extension_field::target::ExtensionTarget;
@ -538,8 +537,6 @@ where
#[cfg(test)]
mod tests {
use std::convert::TryInto;
use anyhow::Result;
use crate::field::field_types::Field;

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::marker::PhantomData;
use std::ops::Range;

View File

@ -1,5 +1,4 @@
use std::arch::aarch64::*;
use std::convert::TryInto;
use static_assertions::const_assert;
use unroll::unroll_for_loops;

View File

@ -1,5 +1,4 @@
use core::arch::x86_64::*;
use std::convert::TryInto;
use std::mem::size_of;
use static_assertions::const_assert;

View File

@ -1,5 +1,3 @@
use std::convert::TryInto;
use rand::Rng;
use serde::{Deserialize, Serialize};

View File

@ -1,7 +1,5 @@
//! Concrete instantiation of a hash function.
use std::convert::TryInto;
use crate::field::extension_field::Extendable;
use crate::field::field_types::RichField;
use crate::hash::hash_types::{HashOut, HashOutTarget};

View File

@ -1,5 +1,3 @@
use std::convert::TryInto;
use anyhow::{ensure, Result};
use serde::{Deserialize, Serialize};

View File

@ -1,8 +1,6 @@
//! Implementation of the Poseidon hash function, as described in
//! https://eprint.iacr.org/2019/458.pdf
use std::convert::TryInto;
use unroll::unroll_for_loops;
use crate::field::extension_field::target::ExtensionTarget;

View File

@ -1,5 +1,3 @@
use std::convert::TryInto;
use crate::field::extension_field::target::ExtensionTarget;
use crate::field::extension_field::{Extendable, FieldExtension};
use crate::field::field_types::RichField;

View File

@ -1,5 +1,4 @@
use std::collections::HashMap;
use std::convert::TryInto;
use num::{BigUint, FromPrimitive, Zero};

View File

@ -1,6 +1,5 @@
use std::cmp::max;
use std::collections::{BTreeMap, HashMap, HashSet};
use std::convert::TryInto;
use std::time::Instant;
use log::{debug, info, Level};

View File

@ -1,4 +1,3 @@
use std::convert::TryInto;
use std::ops::Range;
use crate::field::extension_field::algebra::ExtensionAlgebra;

View File

@ -1,8 +1,6 @@
use std::collections::HashMap;
use std::convert::TryInto;
use std::io::Cursor;
use std::io::{Read, Result, Write};
use std::iter::FromIterator;
use crate::field::extension_field::{Extendable, FieldExtension};
use crate::field::field_types::{PrimeField, RichField};