aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-13 18:11:11 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-13 18:11:11 +0530
commit9954ee1334e6224409bf82db620d80721f56bb13 (patch)
tree91cb7911f285a9af6152abb445fc81d064d10491
parent0e953618d1070f2019f452318deac4a6ea375600 (diff)
parentb032a7894a648a9ef871b3a5ff4343bc7c967919 (diff)
downloadservo-9954ee1334e6224409bf82db620d80721f56bb13.tar.gz
servo-9954ee1334e6224409bf82db620d80721f56bb13.zip
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 -->
-rw-r--r--components/compositing/constellation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs
index e61419eebc7..3512fde4524 100644
--- a/components/compositing/constellation.rs
+++ b/components/compositing/constellation.rs
@@ -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() &&