mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove a pointless Url clone.
This commit is contained in:
parent
aec297565b
commit
b032a7894a
1 changed files with 1 additions and 1 deletions
|
@ -955,7 +955,7 @@ impl<LTF: LayoutThreadFactory, STF: ScriptThreadFactory> Constellation<LTF, STF>
|
|||
|
||||
// Compare the pipeline's url to the new url. If the origin is the same,
|
||||
// then reuse the script thread in creating the new pipeline
|
||||
let source_url = source_pipeline.url.clone();
|
||||
let source_url = &source_pipeline.url;
|
||||
|
||||
let same_script = source_url.host() == new_url.host() &&
|
||||
source_url.port() == new_url.port() &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue