diff --git a/src/bins.rs b/src/bins.rs index ce427dd1..d08cf15a 100644 --- a/src/bins.rs +++ b/src/bins.rs @@ -109,12 +109,9 @@ impl BinFile { } fn link_dest(&self) -> &Path { - #[cfg(target_family = "unix")] - { + if cfg!(target_family = "unix") { Path::new(self.dest.file_name().unwrap()) - } - #[cfg(target_family = "windows")] - { + } else { &self.dest } }