Migrate to Rust 2021

This commit is contained in:
Jack Grigg 2022-05-04 23:16:27 +00:00
parent 3329b4de85
commit 0b8ed00c84
4 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,7 @@ authors = [
"Daira Hopwood <daira@electriccoin.co>",
"Jack Grigg <jack@electriccoin.co>",
]
edition = "2018"
edition = "2021"
rust-version = "1.56"
license = "MIT OR Apache-2.0"
repository = "https://github.com/zcash/pasta_curves"

View File

@ -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::<usize>() >= 4);

View File

@ -1,4 +1,3 @@
use core::convert::TryInto;
use core::fmt;
use core::ops::{Add, Mul, Neg, Sub};

View File

@ -1,4 +1,3 @@
use core::convert::TryInto;
use core::fmt;
use core::ops::{Add, Mul, Neg, Sub};