aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-03-11 11:08:57 +0100
committerJosh Matthews <josh@joshmatthews.net>2015-03-18 13:18:31 -0400
commit5f15eb5fbfb7a8649132cc8b3a07314389836714 (patch)
treecc36210329cb1a31709a03685c05c4aaa99407e3 /components/script/script_task.rs
parent65d4b12bf20783ea784f1c61f4b33ec0fc975f4f (diff)
downloadservo-5f15eb5fbfb7a8649132cc8b3a07314389836714.tar.gz
servo-5f15eb5fbfb7a8649132cc8b3a07314389836714.zip
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index 3b17c49e45c..238763f3035 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -831,7 +831,7 @@ impl ScriptTask {
fn handle_page_fetch_complete(&self, id: PipelineId, subpage: Option<SubpageId>,
response: LoadResponse) {
// Any notification received should refer to an existing, in-progress load that is tracked.
- let idx = self.incomplete_loads.borrow().iter().position(|&:load| {
+ let idx = self.incomplete_loads.borrow().iter().position(|load| {
load.pipeline_id == id && load.subpage_id.map(|sub| sub.1) == subpage
}).unwrap();
let load = self.incomplete_loads.borrow_mut().remove(idx);