diff --git a/aeron-driver-sys/build.rs b/aeron-driver-sys/build.rs index 0942e0b..c8faa72 100644 --- a/aeron-driver-sys/build.rs +++ b/aeron-driver-sys/build.rs @@ -47,17 +47,14 @@ pub fn main() { link_type.target_name() ); - match link_type { - LinkType::Static => { - // On Windows, there are some extra libraries needed for static link - // that aren't included by Aeron. - if cfg!(target_os = "windows") { - println!("cargo:rustc-link-lib=shell32"); - println!("cargo:rustc-link-lib=iphlpapi"); - } + if let LinkType::Static = link_type { + // On Windows, there are some extra libraries needed for static link + // that aren't included by Aeron. + if cfg!(target_os = "windows") { + println!("cargo:rustc-link-lib=shell32"); + println!("cargo:rustc-link-lib=iphlpapi"); } - _ => (), - }; + } let cmake_output = Config::new(&aeron_path) .build_target(link_type.target_name()) diff --git a/aeron-rs/Cargo.toml b/aeron-rs/Cargo.toml index 3932017..4908117 100644 --- a/aeron-rs/Cargo.toml +++ b/aeron-rs/Cargo.toml @@ -17,5 +17,5 @@ memmap = "0.7" [dev-dependencies] clap = "2.33" -ctrlc = "3.1.3" +ctrlc = "=3.1.3" tempfile = "3.1"