aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/components/main/platform/common/glfw_windowing.rs4
-rwxr-xr-xsrc/components/main/servo.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/main/platform/common/glfw_windowing.rs b/src/components/main/platform/common/glfw_windowing.rs
index 5c99921ac90..00fcc01de66 100644
--- a/src/components/main/platform/common/glfw_windowing.rs
+++ b/src/components/main/platform/common/glfw_windowing.rs
@@ -88,7 +88,7 @@ pub struct Window {
pub glfw_window: glfw::Window,
pub events: Receiver<(f64, glfw::WindowEvent)>,
- pub event_queue: RefCell<~[WindowEvent]>,
+ pub event_queue: RefCell<Vec<WindowEvent>>,
pub drag_origin: Point2D<c_int>,
@@ -116,7 +116,7 @@ impl WindowMethods<Application> for Window {
glfw_window: glfw_window,
events: events,
- event_queue: RefCell::new(~[]),
+ event_queue: RefCell::new(Vec::new()),
drag_origin: Point2D(0 as c_int, 0),
diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs
index 99df8e079ba..746b7d2e260 100755
--- a/src/components/main/servo.rs
+++ b/src/components/main/servo.rs
@@ -137,7 +137,7 @@ fn start(argc: int, argv: **u8) -> int {
#[no_mangle]
pub extern "C" fn android_start(argc: int, argv: **u8) -> int {
native::start(argc, argv, proc() {
- let mut args:~[~str] = ~[];
+ let mut args: Vec<~str> = Vec::new();
for i in range(0u, argc as uint) {
unsafe {
args.push(str::raw::from_c_str(*argv.offset(i as int) as *i8));