Skip to content

Commit

Permalink
chore: update to Rust edition 2021
Browse files Browse the repository at this point in the history
We were using resolver version 2 already, hence it makes sense to
completely switch to Rust edition 2021.

Closes filecoin-project#282.

BREAKING CHANGE: Rust edition upgrade to 2021

Changes to the edition should always be released as a breaking change to
prevent accidental down stream breakage.
  • Loading branch information
vmx committed Nov 17, 2022
1 parent 1e94cce commit 42c5cd1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ license = "MIT/Apache-2.0"
repository = "https://github.com/filecoin-project/bellman"
version = "0.23.0"
readme = "README.md"
edition = "2018"
edition = "2021"
rust-version = "1.57.0"
resolver = "2"

[dependencies]
blake2s_simd = "1.0.0"
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ pub const BELLMAN_VERSION: &str = env!("CARGO_PKG_VERSION");

#[cfg(feature = "groth16")]
pub(crate) fn le_bytes_to_u64s(le_bytes: &[u8]) -> Vec<u64> {
use std::convert::TryInto;

assert_eq!(
le_bytes.len() % 8,
0,
Expand Down
2 changes: 1 addition & 1 deletion verifier-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[package]
name = "verifier-bench"
version = "0.0.1"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
Expand Down

0 comments on commit 42c5cd1

Please sign in to comment.