From 9d387b4f9820c55030724506533b0233b75f2617 Mon Sep 17 00:00:00 2001 From: Peter Atashian Date: Fri, 21 Aug 2015 11:49:10 -0400 Subject: Cleanup unused import stuff Also support i686-pc-windows-msvc Signed-off-by: Peter Atashian --- src/api/win32/callback.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/api/win32/callback.rs') diff --git a/src/api/win32/callback.rs b/src/api/win32/callback.rs index 25beb7b..5667ca8 100644 --- a/src/api/win32/callback.rs +++ b/src/api/win32/callback.rs @@ -45,7 +45,7 @@ fn send_event(input_window: winapi::HWND, event: Event) { } /// This is the callback that is called by `DispatchMessage` in the events loop. -/// +/// /// Returning 0 tells the Win32 API that the message has been processed. // FIXME: detect WM_DWMCOMPOSITIONCHANGED and call DwmEnableBlurBehindWindow if necessary pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, @@ -202,7 +202,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, if data.header.dwType == winapi::RIM_TYPEMOUSE { let _x = data.mouse.lLastX; // FIXME: this is not always the relative movement let _y = data.mouse.lLastY; - // TODO: + // TODO: //send_event(window, Event::MouseRawMovement { x: x, y: y }); 0 @@ -230,7 +230,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, let cstash = cstash.as_ref(); // there's a very bizarre borrow checker bug // possibly related to rust-lang/rust/#23338 - let cursor_state = if let Some(cstash) = cstash { + let _cursor_state = if let Some(cstash) = cstash { if let Ok(cursor_state) = cstash.cursor_state.lock() { match *cursor_state { CursorState::Normal => { @@ -256,7 +256,7 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT, use events::Event::DroppedFile; let hdrop = wparam as winapi::HDROP; - let mut pathbuf: [u16; winapi::MAX_PATH] = unsafe { mem::uninitialized() }; + let mut pathbuf: [u16; winapi::MAX_PATH] = mem::uninitialized(); let num_drops = shell32::DragQueryFileW(hdrop, 0xFFFFFFFF, ptr::null_mut(), 0); for i in 0..num_drops { -- cgit v1.2.3