mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
Run a round of clippy --fix to fix a ton of lints (#7006)
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com> Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
@ -279,7 +279,7 @@ pub fn find_in_dirs_env(
|
||||
for lib_dir in dirs {
|
||||
if let Ok(dir) = lib_dir.as_path() {
|
||||
// make sure the dir is absolute path
|
||||
if let Ok(dir_abs) = canonicalize_with(&dir, &cwd) {
|
||||
if let Ok(dir_abs) = canonicalize_with(dir, &cwd) {
|
||||
if let Ok(path) = canonicalize_with(filename, dir_abs) {
|
||||
return Ok(Some(path));
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ pub fn glob_from(
|
||||
}
|
||||
(Some(p), path)
|
||||
} else {
|
||||
let path = if let Ok(p) = canonicalize_with(path, &cwd) {
|
||||
let path = if let Ok(p) = canonicalize_with(path, cwd) {
|
||||
p
|
||||
} else {
|
||||
return Err(ShellError::DirectoryNotFound(pattern.span, None));
|
||||
|
Reference in New Issue
Block a user