diff options
author | thiagopnts <thiagopnts@gmail.com> | 2015-02-16 23:16:44 -0200 |
---|---|---|
committer | thiagopnts <thiagopnts@gmail.com> | 2015-02-18 17:57:46 -0200 |
commit | 211a1340c4b5115b44eefe25f3093d7612ec9a39 (patch) | |
tree | 455e22d645bbb3926e0b0a1ee94cbd9a30ba3a72 | |
parent | a45265231797355d08e891be360b2e10bd8df37b (diff) | |
download | servo-211a1340c4b5115b44eefe25f3093d7612ec9a39.tar.gz servo-211a1340c4b5115b44eefe25f3093d7612ec9a39.zip |
Remove 'unused import' warning
Add import for linux only
-rw-r--r-- | ports/glutin/window.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs index 01800adb6df..cd8e97440f7 100644 --- a/ports/glutin/window.rs +++ b/ports/glutin/window.rs @@ -27,7 +27,7 @@ use compositing::windowing::{MouseWindowEvent, WindowNavigateMsg}; #[cfg(feature = "window")] use geom::point::{Point2D, TypedPoint2D}; #[cfg(feature = "window")] -use glutin::{ElementState, Event, MouseButton, MouseCursor, VirtualKeyCode}; +use glutin::{ElementState, Event, MouseButton, VirtualKeyCode}; #[cfg(feature = "window")] use msg::constellation_msg::{KeyState, CONTROL, SHIFT, ALT}; #[cfg(feature = "window")] @@ -511,6 +511,8 @@ impl WindowMethods for Window { #[cfg(target_os="linux")] fn set_cursor(&self, c: Cursor) { + use glutin::MouseCursor; + let glutin_cursor = match c { Cursor::NoCursor => MouseCursor::NoneCursor, Cursor::DefaultCursor => MouseCursor::Default, |