From 52cb865c5ce5d954918ab25d8b4293aa1a81ab5c Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Thu, 5 Jan 2023 04:24:42 -0800 Subject: [PATCH] Upgrade all remaining crates to Rust 2021 (#7681) 2 crates were still using Rust 2018, including the base `nu` crate. This PR upgrades them to Rust 2021. If you're aware of any reason why this is a bad idea, please speak now or forever hold your peace. ## Context I was moving benchmarks from `nu-plugin` to the base crate and couldn't figure out why they wouldn't compile. Turns out the benchmarks rely on some Rust 2021 features. Would be nice to have everything on 2021. --- Cargo.toml | 2 +- crates/nu-test-support/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9380e6b255..e6438fdee5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ authors = ["The Nushell Project Developers"] default-run = "nu" description = "A new type of shell" documentation = "https://www.nushell.sh/book/" -edition = "2018" +edition = "2021" exclude = ["images"] homepage = "https://www.nushell.sh" license = "MIT" diff --git a/crates/nu-test-support/Cargo.toml b/crates/nu-test-support/Cargo.toml index 1d562e6b62..c519cdf59b 100644 --- a/crates/nu-test-support/Cargo.toml +++ b/crates/nu-test-support/Cargo.toml @@ -2,7 +2,7 @@ authors = ["The Nushell Project Developers"] description = "Support for writing Nushell tests" repository = "https://github.com/nushell/nushell/tree/main/crates/nu-test-support" -edition = "2018" +edition = "2021" license = "MIT" name = "nu-test-support" version = "0.73.1"