mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:55:47 +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)]
|
||||
|
Reference in New Issue
Block a user