From b4abe370b27e82a0e0367e39f2360c785a9ada6b Mon Sep 17 00:00:00 2001 From: j4qfrost Date: Tue, 2 Jun 2020 05:08:26 -0700 Subject: [PATCH] Issue 301 (#307) * fix macos pathing nvim * fmting target os * return windows fix * use Path --- src/bridge/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {