diff --git a/Cargo.toml b/Cargo.toml index 3e660c4..be8da06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ authors = [ "Daira Hopwood ", "Jack Grigg ", ] -edition = "2018" +edition = "2021" rust-version = "1.56" license = "MIT OR Apache-2.0" repository = "https://github.com/zcash/pasta_curves" diff --git a/src/arithmetic/fields.rs b/src/arithmetic/fields.rs index 43e1b26..3cf2e9e 100644 --- a/src/arithmetic/fields.rs +++ b/src/arithmetic/fields.rs @@ -13,7 +13,7 @@ use core::assert; #[cfg(feature = "sqrt-table")] use alloc::{boxed::Box, vec::Vec}; #[cfg(feature = "sqrt-table")] -use core::{convert::TryInto, marker::PhantomData}; +use core::marker::PhantomData; const_assert!(size_of::() >= 4); diff --git a/src/fields/fp.rs b/src/fields/fp.rs index 6e39fc1..6d8db0d 100644 --- a/src/fields/fp.rs +++ b/src/fields/fp.rs @@ -1,4 +1,3 @@ -use core::convert::TryInto; use core::fmt; use core::ops::{Add, Mul, Neg, Sub}; diff --git a/src/fields/fq.rs b/src/fields/fq.rs index 5604c15..0a08718 100644 --- a/src/fields/fq.rs +++ b/src/fields/fq.rs @@ -1,4 +1,3 @@ -use core::convert::TryInto; use core::fmt; use core::ops::{Add, Mul, Neg, Sub};