Cargo fmt

This commit is contained in:
Zhenping Zhao 2024-12-11 11:48:07 -08:00
parent c3b6e9f709
commit de83d1afef

View file

@ -87,8 +87,7 @@ impl Command for Cd {
}); });
} }
} else { } else {
let path = let path = nu_path::expand_path_with(path_no_whitespace, &cwd, true);
nu_path::expand_path_with(path_no_whitespace, &cwd, true);
if !path.exists() { if !path.exists() {
return Err(ShellError::DirectoryNotFound { return Err(ShellError::DirectoryNotFound {
dir: path_no_whitespace.to_string(), dir: path_no_whitespace.to_string(),