aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlobjectelement.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-08-26 15:01:12 -0600
committerbors-servo <metajack+bors@gmail.com>2015-08-26 15:01:12 -0600
commit48945b0fc1b1f1bee77f6cb30ac10e17614ef283 (patch)
tree9dab2aee27ae876d8ac18f946c8c18a75f16868d /components/script/dom/htmlobjectelement.rs
parentfa5ad1c6b4faa2c43ff79e77962b94034a4f2bd0 (diff)
parent4678ec16bb7e3aa242f30d6a9d675d5aeaec7cf7 (diff)
downloadservo-48945b0fc1b1f1bee77f6cb30ac10e17614ef283.tar.gz
servo-48945b0fc1b1f1bee77f6cb30ac10e17614ef283.zip
Auto merge of #7397 - Manishearth:doublepointer-meet-fire, r=nox
Remove doublepointer in VirtualMethods, and from_borrowed_ref <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7397) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlobjectelement.rs')
-rw-r--r--components/script/dom/htmlobjectelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlobjectelement.rs b/components/script/dom/htmlobjectelement.rs
index ba0784ab7fb..5cf3cb07229 100644
--- a/components/script/dom/htmlobjectelement.rs
+++ b/components/script/dom/htmlobjectelement.rs
@@ -99,9 +99,9 @@ impl<'a> HTMLObjectElementMethods for &'a HTMLObjectElement {
make_setter!(SetType, "type");
}
-impl<'a> VirtualMethods for &'a HTMLObjectElement {
+impl VirtualMethods for HTMLObjectElement {
fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> {
- let htmlelement: &&HTMLElement = HTMLElementCast::from_borrowed_ref(self);
+ let htmlelement: &HTMLElement = HTMLElementCast::from_ref(self);
Some(htmlelement as &VirtualMethods)
}