From 211a1340c4b5115b44eefe25f3093d7612ec9a39 Mon Sep 17 00:00:00 2001 From: thiagopnts Date: Mon, 16 Feb 2015 23:16:44 -0200 Subject: [PATCH] Remove 'unused import' warning Add import for linux only --- ports/glutin/window.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,