aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/callback.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-04-03 07:52:12 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-04-03 07:52:12 +0200
commit93f4581c08b1b25852527223a6f3608870532a87 (patch)
tree5323fa00d2ea700dd64dfd2dff36ac169ccac163 /src/win32/callback.rs
parent6c990ae48866e6110600aadcb3a0d8850deab42b (diff)
parentd33c138164d069f025439f97920771f1f8c7775e (diff)
downloadglutin-93f4581c08b1b25852527223a6f3608870532a87.tar.gz
glutin-93f4581c08b1b25852527223a6f3608870532a87.zip
Merge pull request #348 from tomaka/rustup
Rustup
Diffstat (limited to 'src/win32/callback.rs')
-rw-r--r--src/win32/callback.rs18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/win32/callback.rs b/src/win32/callback.rs
index 66d88e7..e852eeb 100644
--- a/src/win32/callback.rs
+++ b/src/win32/callback.rs
@@ -1,12 +1,8 @@
use std::mem;
use std::ptr;
-use std::rc::Rc;
use std::cell::RefCell;
use std::sync::mpsc::Sender;
-use std::sync::{
- Arc,
- Mutex
-};
+use std::sync::{Arc, Mutex};
use CursorState;
use Event;
@@ -232,16 +228,12 @@ pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
if let Ok(cursor_state) = cstash.cursor_state.lock() {
match *cursor_state {
CursorState::Normal => {
- unsafe {
- user32::SetCursor(user32::LoadCursorW(
- ptr::null_mut(),
- winapi::IDC_ARROW));
- }
+ user32::SetCursor(user32::LoadCursorW(
+ ptr::null_mut(),
+ winapi::IDC_ARROW));
},
CursorState::Grab | CursorState::Hide => {
- unsafe {
- user32::SetCursor(ptr::null_mut());
- }
+ user32::SetCursor(ptr::null_mut());
}
}
}