diff --git a/src/bridge/mod.rs b/src/bridge/mod.rs index 4458648..0588598 100644 --- a/src/bridge/mod.rs +++ b/src/bridge/mod.rs @@ -35,6 +35,7 @@ fn set_windows_creation_flags(cmd: &mut Command) { #[cfg(target_os = "windows")] fn platform_build_nvim_cmd(bin: &str) -> Option { + use std::path::Path; if !Path::new(&bin).exists() { return None; } @@ -54,7 +55,6 @@ fn platform_build_nvim_cmd(bin: &str) -> Option { #[cfg(not(target_os = "windows"))] fn platform_build_nvim_cmd(bin: &str) -> Option { use std::path::Path; - if Path::new(&bin).exists() { Some(Command::new(bin)) } else {