From 1d418030e1e573877a8de2f92a24ffee2aa7720d Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:23:39 -0500 Subject: [PATCH] bump rust-toolchain to 1.75.0 (#12258) # Description With the release of Rust 1.77.0 today we're able to bump the rust-toolchain for nushell to 1.75.0. # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-protocol/src/errors/labeled_error.rs | 2 +- rust-toolchain.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-protocol/src/errors/labeled_error.rs b/crates/nu-protocol/src/errors/labeled_error.rs index d6c09acb3f..20ac9cff71 100644 --- a/crates/nu-protocol/src/errors/labeled_error.rs +++ b/crates/nu-protocol/src/errors/labeled_error.rs @@ -191,7 +191,7 @@ impl fmt::Display for LabeledError { impl std::error::Error for LabeledError { fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - self.inner.get(0).map(|r| r as _) + self.inner.first().map(|r| r as _) } } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1f3d45b25e..c9355e0730 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -16,4 +16,4 @@ profile = "default" # use in nushell, we may opt to use the bleeding edge stable version of rust. # I believe rust is on a 6 week release cycle and nushell is on a 4 week release cycle. # So, every two nushell releases, this version number should be bumped by one. -channel = "1.74.1" +channel = "1.75.0"