mirror of
https://github.com/nushell/nushell.git
synced 2025-08-19 06:51:28 +02:00
Clean up nu-completion dependencies. (#3645)
This commit is contained in:
committed by
GitHub
parent
1e4678f929
commit
bd44bcee32
@@ -26,7 +26,7 @@ impl PathCompleter {
|
||||
let base_dir = if base_dir_name.is_empty() {
|
||||
PathBuf::from(".")
|
||||
} else {
|
||||
#[cfg(feature = "directories")]
|
||||
#[cfg(feature = "dirs")]
|
||||
{
|
||||
let home_prefix = format!("~{}", SEP);
|
||||
if base_dir_name.starts_with(&home_prefix) {
|
||||
@@ -37,7 +37,7 @@ impl PathCompleter {
|
||||
PathBuf::from(base_dir_name)
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "directories"))]
|
||||
#[cfg(not(feature = "dirs"))]
|
||||
{
|
||||
PathBuf::from(base_dir_name)
|
||||
}
|
||||
|
Reference in New Issue
Block a user