mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Pass a borrowed Url to parse_html.
It does not need to take ownership, and I want to reuse final_url in the caller.
This commit is contained in:
parent
8838f2460e
commit
795327d5c4
2 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ impl<'a> TreeSink<TrustedNodeAddress> for servohtmlparser::Sink {
|
|||
|
||||
pub fn parse_html(document: JSRef<Document>,
|
||||
input: HTMLInput,
|
||||
url: Url) {
|
||||
url: &Url) {
|
||||
let parser = ServoHTMLParser::new(Some(url.clone()), document).root();
|
||||
let parser: JSRef<ServoHTMLParser> = *parser;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue