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"