Skip to content

Commit

Permalink
Set Rust edition to 2021 (#9045)
Browse files Browse the repository at this point in the history
Since our MSRV for the Rust code in Qiskit is 1.56.1 we can set the Rust
editions [1] to Rust Edition 2021 [2]. This will enable us to leverage
newer syntax features in the rust code. This commit bumps the rust
edition from 2018 to 2021.

[1] https://doc.rust-lang.org/edition-guide/editions/index.html
[2] https://doc.rust-lang.org/edition-guide/rust-2021/index.html

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mtreinish and mergify[bot] authored Nov 1, 2022
1 parent 234816c commit 3e14e6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "qiskit-terra"
version = "0.23.0"
edition = "2018"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 3e14e6e

Please sign in to comment.