Skip to content

Commit

Permalink
~[] to Vec in script/script_task.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
murphm8 authored and Ms2ger committed May 4, 2014
1 parent dccea25 commit e107d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/script/script_task.rs
Expand Up @@ -671,7 +671,7 @@ impl ScriptTask {

// Handle pending resize events.
// Gather them first to avoid a double mut borrow on self.
let mut resizes = vec!();
let mut resizes = Vec::new();

{
let mut page_tree = self.page_tree.borrow_mut();
Expand All @@ -693,7 +693,7 @@ impl ScriptTask {
}

// Store new resizes, and gather all other events.
let mut sequential = vec!();
let mut sequential = Vec::new();

// Receive at least one message so we don't spinloop.
let mut event = self.port.recv();
Expand Down

0 comments on commit e107d0f

Please sign in to comment.