mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Merge pull request #790 from mitchmindtree/remove_unused_imports
Addresses unused import and `non_upper_case_globals` warnings emitted on OS X
This commit is contained in:
commit
0c4cf714a1
|
@ -5,7 +5,6 @@ use GlProfile;
|
|||
use GlRequest;
|
||||
use PixelFormatRequirements;
|
||||
use ReleaseBehavior;
|
||||
use cocoa::foundation::NSAutoreleasePool;
|
||||
use cocoa::appkit::*;
|
||||
|
||||
pub fn build_nsattributes<T>(pf_reqs: &PixelFormatRequirements, opengl: &GlAttributes<&T>)
|
||||
|
|
|
@ -7,11 +7,8 @@ use libc;
|
|||
use ContextError;
|
||||
use GlAttributes;
|
||||
use GlContext;
|
||||
use GlProfile;
|
||||
use GlRequest;
|
||||
use PixelFormat;
|
||||
use PixelFormatRequirements;
|
||||
use ReleaseBehavior;
|
||||
use Robustness;
|
||||
use WindowAttributes;
|
||||
use native_monitor::NativeMonitorId;
|
||||
|
@ -40,7 +37,6 @@ use std::collections::VecDeque;
|
|||
use std::str::FromStr;
|
||||
use std::str::from_utf8;
|
||||
use std::sync::Mutex;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::ops::Deref;
|
||||
|
||||
use events::ElementState;
|
||||
|
@ -823,7 +819,7 @@ impl Clone for IdRef {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(non_snake_case, non_upper_case_globals)]
|
||||
unsafe fn NSEventToEvent(window: &Window, nsevent: id) -> Option<Event> {
|
||||
if nsevent == nil { return None; }
|
||||
|
||||
|
|
|
@ -6,16 +6,13 @@ use ContextError;
|
|||
use CreationError;
|
||||
use CursorState;
|
||||
use Event;
|
||||
use GlAttributes;
|
||||
use GlContext;
|
||||
use GlProfile;
|
||||
use GlRequest;
|
||||
use MouseCursor;
|
||||
use PixelFormat;
|
||||
use PixelFormatRequirements;
|
||||
use Robustness;
|
||||
use Window;
|
||||
use WindowAttributes;
|
||||
use WindowBuilder;
|
||||
use native_monitor::NativeMonitorId;
|
||||
|
||||
|
|
Loading…
Reference in a new issue