diff --git a/crates/nu-glob/src/lib.rs b/crates/nu-glob/src/lib.rs index 04549e23c..d9bdf4e66 100644 --- a/crates/nu-glob/src/lib.rs +++ b/crates/nu-glob/src/lib.rs @@ -1161,10 +1161,10 @@ mod test { // check windows absolute paths with host/device components let root_with_device = current_dir() .ok() - .and_then(|p| match p.components().next().unwrap() { + .map(|p| match p.components().next().unwrap() { Component::Prefix(prefix_component) => { let path = Path::new(prefix_component.as_os_str()).join("*"); - Some(path) + path } _ => panic!("no prefix in this path"), }) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 45d35de0a..97578b512 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.70.0" +channel = "1.71.1"