Reduce copying on parse_url() call sites.

This commit is contained in:
Tetsuharu OHZEKI 2014-02-09 05:03:06 +09:00
parent fe1bb6a325
commit d3cbdd8865
7 changed files with 41 additions and 41 deletions

View file

@ -895,7 +895,7 @@ impl ScriptTask {
url.clone()
});
debug!("ScriptTask: current url is {:?}", base_url);
let url = parse_url(href.Value(), base_url);
let url = parse_url(href.value_ref(), base_url);
if click_frag {
match self.find_fragment_node(page, url.fragment.unwrap()) {