diff --git a/src/components/main/platform/common/glut_windowing.rs b/src/components/main/platform/common/glut_windowing.rs index 00e3128e81a..9f9e59df101 100644 --- a/src/components/main/platform/common/glut_windowing.rs +++ b/src/components/main/platform/common/glut_windowing.rs @@ -47,7 +47,7 @@ impl Drop for Application { pub struct Window { pub glut_window: glut::Window, - pub event_queue: RefCell<~[WindowEvent]>, + pub event_queue: RefCell>, pub drag_origin: Point2D, @@ -70,7 +70,7 @@ impl WindowMethods for Window { let window = Window { glut_window: glut_window, - event_queue: RefCell::new(~[]), + event_queue: RefCell::new(Vec::new()), drag_origin: Point2D(0 as c_int, 0),