aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRengierof <anttoni.v.koivu@gmail.com>2015-12-26 20:23:20 +0200
committerRengierof <anttoni.v.koivu@gmail.com>2015-12-26 20:23:20 +0200
commitbc811fa587ac3f9c996d71cfc285b8edad0bf9f7 (patch)
tree3e8a779660455dd991f542ee67dc00903f7afeb5
parentd2ac6cfa11899378546c1fb4b71943c83bb3dc62 (diff)
downloadglutin-bc811fa587ac3f9c996d71cfc285b8edad0bf9f7.tar.gz
glutin-bc811fa587ac3f9c996d71cfc285b8edad0bf9f7.zip
Removed unnecessary unsafe code block
-rw-r--r--src/api/win32/mod.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/api/win32/mod.rs b/src/api/win32/mod.rs
index 4dceaef..cb7e170 100644
--- a/src/api/win32/mod.rs
+++ b/src/api/win32/mod.rs
@@ -43,7 +43,7 @@ lazy_static! {
}
/// Cursor
-pub type Cursor = *const u16;
+pub type Cursor = *const winapi::wchar_t;
/// Contains information about states and the window for the callback.
#[derive(Clone)]
@@ -282,10 +282,8 @@ impl Window {
_ => winapi::IDC_ARROW, // use arrow for the missing cases.
};
- unsafe {
- let mut cur = self.window_state.lock().unwrap();
- cur.cursor = mem::transmute(cursor_id);
- }
+ let mut cur = self.window_state.lock().unwrap();
+ cur.cursor = cursor_id;
}