on master help sign in
Fix compilation on windows
commite863f6fe2797b0b4e3cbd255789da373d6e5a5fc authorBlaž Hrastnik <blaz@mxxn.io> dateMon 22 Aug 2022, 10:17 (4 years ago) parentcb7615e
1 file changed+1−2
helix-view/src/clipboard.rs+1−2
helix-view/src/clipboard.rs+1−2
@@ -231,12 +231,11 @@ pub mod provider {
231231 use super::*;
232232 use anyhow::{bail, Context as _, Result};
233233
234− #[cfg(not(windows))]
235234 pub fn exists(executable_name: &str) -> bool {
236235 which::which(executable_name).is_ok()
237236 }
238237
239− #[cfg(not(any(windows, target_os = "macos")))]
238+ #[cfg(not(windows))]
240239 pub fn env_var_is_set(env_var_name: &str) -> bool {
241240 std::env::var_os(env_var_name).is_some()
242241 }