From 7e3864ffbe686e805e88ba5401dce989b1badd81 Mon Sep 17 00:00:00 2001 From: Micah Johnston Date: Sat, 25 Apr 2026 12:02:45 -0500 Subject: [PATCH] move #![allow(unexpected_cfgs)] to crate root --- src/gl/macos.rs | 4 ---- src/lib.rs | 4 ++++ src/macos/mod.rs | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/gl/macos.rs b/src/gl/macos.rs index f68b796a..323a40de 100644 --- a/src/gl/macos.rs +++ b/src/gl/macos.rs @@ -1,7 +1,3 @@ -// This is required because the objc crate is causing a lot of warnings: https://github.com/SSheldon/rust-objc/issues/125 -// Eventually we should migrate to the objc2 crate and remove this. -#![allow(unexpected_cfgs)] - use std::ffi::c_void; use std::str::FromStr; diff --git a/src/lib.rs b/src/lib.rs index 54d57dd5..623d7b98 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,7 @@ +// This is required because the objc crate is causing a lot of warnings: https://github.com/SSheldon/rust-objc/issues/125 +// Eventually we should migrate to the objc2 crate and remove this. +#![allow(unexpected_cfgs)] + #[cfg(target_os = "macos")] mod macos; #[cfg(target_os = "windows")] diff --git a/src/macos/mod.rs b/src/macos/mod.rs index d5e7f591..02a0e36f 100644 --- a/src/macos/mod.rs +++ b/src/macos/mod.rs @@ -1,7 +1,3 @@ -// This is required because the objc crate is causing a lot of warnings: https://github.com/SSheldon/rust-objc/issues/125 -// Eventually we should migrate to the objc2 crate and remove this. -#![allow(unexpected_cfgs)] - mod keyboard; mod view; mod window;