diff --git a/rio-window/build.rs b/rio-window/build.rs index 0061fef1..74c003c4 100644 --- a/rio-window/build.rs +++ b/rio-window/build.rs @@ -40,19 +40,11 @@ fn main() { println!("cargo:rustc-check-cfg=cfg(unreleased_changelogs)"); - let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); - #[cfg(target_os = "macos")] - if target_os == "macos" { - generate_dispatch_bindings(); - } + generate_dispatch_bindings(); #[cfg(target_os = "windows")] - if target_os == "windows" { - load_app_icon(); - } - - let _ = target_os; + load_app_icon(); } #[cfg(target_os = "macos")]