Auto merge of #10564 - Ms2ger:url-clone, r=Manishearth

Remove a pointless Url clone.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10564)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-13 18:11:11 +05:30
commit 9954ee1334

View file

@ -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() &&