aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-04-26 14:57:32 +0200
committerMs2ger <ms2ger@gmail.com>2014-04-28 23:06:26 +0200
commit55ed05f2c701f14ad11132c46f1fdb1a464fd1c5 (patch)
tree9abe72aa7fdea95d820555b63e99bf9972d30503 /src/components/script/script_task.rs
parent6e617d8eba14f0475300d2602ca98d25276f8083 (diff)
downloadservo-55ed05f2c701f14ad11132c46f1fdb1a464fd1c5.tar.gz
servo-55ed05f2c701f14ad11132c46f1fdb1a464fd1c5.zip
Use Vec for the remaining ~[T]s in script.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index 49b26affa63..43d1fd49b26 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -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();