diff options
author | Arthur Skobara <skobara.arthur@gmail.com> | 2015-12-12 22:31:19 +0600 |
---|---|---|
committer | Arthur Skobara <skobara.arthur@gmail.com> | 2015-12-12 22:31:19 +0600 |
commit | 8acb21a59460d3ba91cd04439b2087127ad0ffe7 (patch) | |
tree | f059895fe839da5d75492d4606942edce7dfe652 /components/script/script_task.rs | |
parent | f4783a0ec30c74f93c161372de806309900172ca (diff) | |
download | servo-8acb21a59460d3ba91cd04439b2087127ad0ffe7.tar.gz servo-8acb21a59460d3ba91cd04439b2087127ad0ffe7.zip |
Remove from Trusted::new an unnecessary argument
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 1dcf707a735..c4efab48169 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1260,7 +1260,7 @@ impl ScriptTask { doc.mut_loader().inhibit_events(); // https://html.spec.whatwg.org/multipage/#the-end step 7 - let addr: Trusted<Document> = Trusted::new(self.get_cx(), doc, self.chan.clone()); + let addr: Trusted<Document> = Trusted::new(doc, self.chan.clone()); let handler = box DocumentProgressHandler::new(addr.clone()); self.chan.send(CommonScriptMsg::RunnableMsg(ScriptTaskEventCategory::DocumentEvent, handler)).unwrap(); |