bump to the latest rust version (#15483)

# Description

This PR bumps nushell to use the latest rust version 1.84.1.
This commit is contained in:
Darren Schroeder
2025-04-03 14:08:59 -05:00
committed by GitHub
parent 5ec823996a
commit 2bf0397d80
5 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@ pub fn has_trailing_slash(path: &Path) -> bool {
#[cfg(target_arch = "wasm32")]
pub fn has_trailing_slash(path: &Path) -> bool {
// in the web paths are often just URLs, they are separated by forward slashes
path.to_str().map_or(false, |s| s.ends_with('/'))
path.to_str().is_some_and(|s| s.ends_with('/'))
}
#[cfg(test)]

View File

@ -71,7 +71,7 @@ impl Default for DataFrameValue {
impl PartialEq for DataFrameValue {
fn eq(&self, other: &Self) -> bool {
self.0.partial_cmp(&other.0).map_or(false, Ordering::is_eq)
self.0.partial_cmp(&other.0).is_some_and(Ordering::is_eq)
}
}
impl Eq for DataFrameValue {}

View File

@ -66,7 +66,7 @@ impl WebTable {
let mut tables = html
.select(&sel_table)
.filter(|table| {
table.select(&sel_tr).next().map_or(false, |tr| {
table.select(&sel_tr).next().is_some_and(|tr| {
let cells = select_cells(tr, &sel_th, true);
if inspect_mode {
eprintln!("Potential HTML Headers = {:?}\n", &cells);