Skip to content

Commit

Permalink
chore: update to rust 2021 edition (#70)
Browse files Browse the repository at this point in the history
* chore: update to rust 2021 edition

Also update the minimum rust version to 1.67.1.
  • Loading branch information
Stebalien authored Oct 18, 2023
1 parent 859a3d1 commit 15323e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches: master

env:
MSRV: 1.63.0
MSRV: 1.67.1
RUSTFLAGS: "-Dwarnings"
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: 1
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name = "bls-signatures"
version = "0.15.0"
authors = ["dignifiedquire <dignifiedquire@gmail.com>"]
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"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.63.0
1.67.1
2 changes: 0 additions & 2 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ fn key_gen<T: AsRef<[u8]>>(data: T) -> Scalar {
/// https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-02#section-2.3
#[cfg(feature = "blst")]
fn key_gen<T: AsRef<[u8]>>(data: T) -> Scalar {
use std::convert::TryInto;

let data = data.as_ref();
assert!(data.len() >= 32, "IKM must be at least 32 bytes");

Expand Down

0 comments on commit 15323e8

Please sign in to comment.