mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Avoid some clones.
This commit is contained in:
parent
78ae9a5da0
commit
703d018f23
5 changed files with 13 additions and 17 deletions
|
@ -93,8 +93,8 @@ impl AsyncResponseListener for ParserContext {
|
|||
Err(_) => None,
|
||||
};
|
||||
let content_type = metadata.clone().and_then(|meta| meta.content_type);
|
||||
let parser = match ScriptThread::page_fetch_complete(self.id.clone(),
|
||||
self.subpage.clone(),
|
||||
let parser = match ScriptThread::page_fetch_complete(&self.id,
|
||||
self.subpage.as_ref(),
|
||||
metadata) {
|
||||
Some(parser) => parser,
|
||||
None => return,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue