diff options
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index db71fdb3e51..bc2c3e2c8f8 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -133,7 +133,7 @@ fn js_script_listener(to_parent: Sender<HtmlDiscoveryMessage>, Ok(JSTaskNewFile(url)) => { match load_whole_resource(&resource_task, url.clone()) { Err(_) => { - error!("error loading script {:s}", url.to_str()); + error!("error loading script {:s}", url.serialize()); } Ok((metadata, bytes)) => { result_vec.push(JSFile { @@ -541,7 +541,7 @@ pub fn parse_html(page: &Page, parser.parse_chunk(data.as_slice()); } Done(Err(err)) => { - fail!("Failed to load page URL {:s}, error: {:s}", url.to_str(), err); + fail!("Failed to load page URL {:s}, error: {:s}", url.serialize(), err); } Done(..) => { break; |