Skip to content

Commit

Permalink
Remove 'unused import' warning
Browse files Browse the repository at this point in the history
Add import for linux only
  • Loading branch information
thiagopnts committed Feb 18, 2015
1 parent a452652 commit 211a134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ports/glutin/window.rs
Expand Up @@ -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")]
Expand Down Expand Up @@ -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,
Expand Down

5 comments on commit 211a134

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from gw
at thiagopnts@211a134

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging thiagopnts/servo/remove-warnings = 211a134 into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thiagopnts/servo/remove-warnings = 211a134 merged ok, testing candidate = 25678f9

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 25678f9

Please sign in to comment.