From 25a2a7a0f9ad2d07440e04b67f4e096c549ba2df Mon Sep 17 00:00:00 2001 From: Zhenping Zhao Date: Mon, 16 Dec 2024 07:19:43 -0800 Subject: [PATCH] Adjust import condition fo is_env_var_for_drive. --- crates/nu-cli/src/completions/variable_completions.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/nu-cli/src/completions/variable_completions.rs b/crates/nu-cli/src/completions/variable_completions.rs index 27b043ce68..4aed24661e 100644 --- a/crates/nu-cli/src/completions/variable_completions.rs +++ b/crates/nu-cli/src/completions/variable_completions.rs @@ -1,9 +1,11 @@ use crate::completions::{Completer, CompletionOptions, SemanticSuggestion, SuggestionKind}; use nu_engine::{column::get_columns, eval_variable}; use nu_protocol::{ - engine::{is_env_var_for_drive, Stack, StateWorkingSet}, + engine::{Stack, StateWorkingSet}, Span, Value, }; +#[cfg(windows)] +use nu_protocol::engine::is_env_var_for_drive; use reedline::Suggestion; use std::str;