mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Avoid a build warning in the glutin port without the window feature enabled.
This commit is contained in:
parent
1d9b5ced38
commit
ee65647ee1
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,6 @@ use layers::platform::surface::NativeGraphicsMetadata;
|
||||||
use msg::constellation_msg;
|
use msg::constellation_msg;
|
||||||
use msg::constellation_msg::Key;
|
use msg::constellation_msg::Key;
|
||||||
use net::net_error_list::NetError;
|
use net::net_error_list::NetError;
|
||||||
use std::mem;
|
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
use std::sync::mpsc::{channel, Sender};
|
use std::sync::mpsc::{channel, Sender};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
@ -311,6 +310,8 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn wait_events(&self) -> Vec<WindowEvent> {
|
pub fn wait_events(&self) -> Vec<WindowEvent> {
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
let mut events = mem::replace(&mut *self.event_queue.borrow_mut(), Vec::new());
|
let mut events = mem::replace(&mut *self.event_queue.borrow_mut(), Vec::new());
|
||||||
let mut close_event = false;
|
let mut close_event = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue