mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Fix a warning about an unused import on macOS
This commit is contained in:
parent
4396051449
commit
ff6fd699fe
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue