mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
Fix compilation on windows
This commit is contained in:
parent
cb7615e0ed
commit
e863f6fe27
@ -231,12 +231,11 @@ pub mod command {
|
||||
use super::*;
|
||||
use anyhow::{bail, Context as _, Result};
|
||||
|
||||
#[cfg(not(windows))]
|
||||
pub fn exists(executable_name: &str) -> bool {
|
||||
which::which(executable_name).is_ok()
|
||||
}
|
||||
|
||||
#[cfg(not(any(windows, target_os = "macos")))]
|
||||
#[cfg(not(windows))]
|
||||
pub fn env_var_is_set(env_var_name: &str) -> bool {
|
||||
std::env::var_os(env_var_name).is_some()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user