From d0d46305ab1f5f067db215b46e721807afc755ef Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 17 Oct 2023 16:11:38 -0700 Subject: [PATCH] chore: update minimum rust version Also update to 2021 edition. --- Cargo.toml | 4 ++-- rust-toolchain | 2 +- src/key.rs | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5c0a815..b555101 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,9 +3,9 @@ name = "bls-signatures" version = "0.15.0" authors = ["dignifiedquire "] license = "MIT OR Apache-2.0" -edition = "2018" +edition = "2021" resolver = "2" -rust-version = "1.63.0" +rust-version = "1.67.1" description = "Aggregate BLS Signatures" documentation = "https://docs.rs/bls-signatures" diff --git a/rust-toolchain b/rust-toolchain index af92bdd..737e2ba 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.63.0 +1.67.1 diff --git a/src/key.rs b/src/key.rs index b7797f9..95df77e 100644 --- a/src/key.rs +++ b/src/key.rs @@ -245,8 +245,6 @@ fn key_gen>(data: T) -> Scalar { /// https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-02#section-2.3 #[cfg(feature = "blst")] fn key_gen>(data: T) -> Scalar { - use std::convert::TryInto; - let data = data.as_ref(); assert!(data.len() >= 32, "IKM must be at least 32 bytes");