diff --git a/crates/nu-command/src/filesystem/cd.rs b/crates/nu-command/src/filesystem/cd.rs index 11b57ae19d..cd48e508e7 100644 --- a/crates/nu-command/src/filesystem/cd.rs +++ b/crates/nu-command/src/filesystem/cd.rs @@ -1,5 +1,4 @@ use nu_engine::command_prelude::*; -use nu_protocol::engine::expand_path_with; use nu_utils::filesystem::{have_permission, PermissionResult}; #[derive(Clone)] @@ -89,7 +88,7 @@ impl Command for Cd { } } else { let path = - expand_path_with(stack, engine_state, path_no_whitespace, &cwd, true); + nu_path::expand_path_with(path_no_whitespace, &cwd, true); if !path.exists() { return Err(ShellError::DirectoryNotFound { dir: path_no_whitespace.to_string(),