diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs index 5fb991745919..1424c72181cd 100644 --- a/components/script/parse/html.rs +++ b/components/script/parse/html.rs @@ -275,7 +275,7 @@ pub fn parse_html(document: JSRef, task_state::enter(IN_HTML_PARSER); } - fn parse_progress(parser: &JSRef, url: &Url, load_response: &LoadResponse) { + fn parse_progress(parser: JSRef, url: &Url, load_response: &LoadResponse) { for msg in load_response.progress_port.iter() { match msg { ProgressMsg::Payload(data) => { @@ -314,10 +314,10 @@ pub fn parse_html(document: JSRef, // https://html.spec.whatwg.org/multipage/#read-text let page = format!("
\u{000A}");
                     parser.parse_chunk(page);
-                    parse_progress(&parser, url, &load_response);
+                    parse_progress(parser, url, &load_response);
                 },
                 _ => {
-                    parse_progress(&parser, url, &load_response);
+                    parse_progress(parser, url, &load_response);
                 }
             }
         }