Skip to content

Commit

Permalink
Never trust IDE auto-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan McGrath committed Jan 31, 2020
1 parent 75b1a16 commit aebb359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/raw-window-handle-with-wgpu/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ extern crate sdl2;
extern crate wgpu;

use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
use raw_window_handle::macos::MacOSHandle;

use sdl2::event::{Event, WindowEvent};
use sdl2::keyboard::Keycode;
Expand All @@ -33,6 +32,7 @@ unsafe impl<'a> HasRawWindowHandle for WindowWrapper<'a> {
fn raw_window_handle(&self) -> RawWindowHandle {
use objc::{msg_send, sel, sel_impl};
use objc::runtime::Object;
use raw_window_handle::macos::MacOSHandle;
let handle = self.0.raw_window_handle();
match handle {
RawWindowHandle::MacOS(macos_handle) => {
Expand Down Expand Up @@ -188,4 +188,4 @@ fn main() -> Result<(), String> {
}

Ok(())
}
}

0 comments on commit aebb359

Please sign in to comment.