diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-12-09 15:11:58 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-12-09 15:12:01 +0100 |
commit | 795327d5c4984957af7720a91159f91f9162be62 (patch) | |
tree | d1a0ac9a0c793d49dcdacf2e25caa6ff15e3fa44 /components/script/script_task.rs | |
parent | 8838f2460e03c26df54707978970c1e198bf2a84 (diff) | |
download | servo-795327d5c4984957af7720a91159f91f9162be62.tar.gz servo-795327d5c4984957af7720a91159f91f9162be62.zip |
Pass a borrowed Url to parse_html.
It does not need to take ownership, and I want to reuse final_url in the
caller.
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 6a213c14b54..c778d2792fc 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -781,7 +781,7 @@ impl ScriptTask { (InputString(strval.unwrap_or("".to_string())), doc_url) }; - parse_html(*document, parser_input, final_url); + parse_html(*document, parser_input, &final_url); url = page.get_url().clone(); document.set_ready_state(DocumentReadyStateValues::Interactive); |