mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 02:11:21 +02:00
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:
@ -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)]
|
||||
|
@ -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 {}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user