mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
auto merge of #4943 : thiagopnts/servo/remove-warnings, r=gw
Remove warning from unused import
This commit is contained in:
commit
25678f9c2f
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue