Fix a warning about an unused import on macOS

This commit is contained in:
ridiculousfish 2024-03-03 14:12:59 -08:00
parent 4396051449
commit ff6fd699fe

View file

@ -5,7 +5,6 @@ use crate::expand::{
PROCESS_EXPAND_SELF, PROCESS_EXPAND_SELF_STR, VARIABLE_EXPAND, VARIABLE_EXPAND_SINGLE, PROCESS_EXPAND_SELF, PROCESS_EXPAND_SELF_STR, VARIABLE_EXPAND, VARIABLE_EXPAND_SINGLE,
}; };
use crate::fallback::fish_wcwidth; use crate::fallback::fish_wcwidth;
use crate::flog::FLOG;
use crate::future_feature_flags::{feature_test, FeatureFlag}; use crate::future_feature_flags::{feature_test, FeatureFlag};
use crate::global_safety::AtomicRef; use crate::global_safety::AtomicRef;
use crate::global_safety::RelaxedAtomicBool; use crate::global_safety::RelaxedAtomicBool;
@ -1696,6 +1695,7 @@ pub fn is_windows_subsystem_for_linux() -> bool {
// this check: if the environment variable FISH_NO_WSL_CHECK is present, this test // this check: if the environment variable FISH_NO_WSL_CHECK is present, this test
// is bypassed. We intentionally do not include this in the error message because // is bypassed. We intentionally do not include this in the error message because
// it'll only allow fish to run but not to actually work. Here be dragons! // it'll only allow fish to run but not to actually work. Here be dragons!
use crate::flog::FLOG;
if env::var_os("FISH_NO_WSL_CHECK").is_none() { if env::var_os("FISH_NO_WSL_CHECK").is_none() {
FLOG!( FLOG!(
error, error,