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; diff --git a/src/macos/window.rs b/src/macos/window.rs index 57bca108..bf34a7c1 100644 --- a/src/macos/window.rs +++ b/src/macos/window.rs @@ -11,7 +11,7 @@ use cocoa::appkit::{ use cocoa::base::{id, nil, BOOL, NO, YES}; use cocoa::foundation::{NSAutoreleasePool, NSPoint, NSRect, NSSize, NSString}; use core_foundation::runloop::{ - CFRunLoop, CFRunLoopTimer, CFRunLoopTimerContext, __CFRunLoopTimer, kCFRunLoopDefaultMode, + __CFRunLoopTimer, kCFRunLoopDefaultMode, CFRunLoop, CFRunLoopTimer, CFRunLoopTimerContext, }; use keyboard_types::KeyboardEvent; use objc::class;