mirror of
https://github.com/servo/servo.git
synced 2025-10-05 19:19:25 +01:00
Use Vec for the remaining ~[T]s in script.
This commit is contained in:
parent
6e617d8eba
commit
55ed05f2c7
5 changed files with 12 additions and 13 deletions
|
@ -647,7 +647,7 @@ impl ScriptTask {
|
|||
fn handle_msgs(&self) -> bool {
|
||||
// Handle pending resize events.
|
||||
// Gather them first to avoid a double mut borrow on self.
|
||||
let mut resizes = ~[];
|
||||
let mut resizes = vec!();
|
||||
|
||||
{
|
||||
let mut page_tree = self.page_tree.borrow_mut();
|
||||
|
@ -669,7 +669,7 @@ impl ScriptTask {
|
|||
}
|
||||
|
||||
// Store new resizes, and gather all other events.
|
||||
let mut sequential = ~[];
|
||||
let mut sequential = vec!();
|
||||
|
||||
// Receive at least one message so we don't spinloop.
|
||||
let mut event = self.port.recv();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue