aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmllegendelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmllegendelement.rs')
-rw-r--r--components/script/dom/htmllegendelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmllegendelement.rs b/components/script/dom/htmllegendelement.rs
index 562c4675a58..345f1a62c55 100644
--- a/components/script/dom/htmllegendelement.rs
+++ b/components/script/dom/htmllegendelement.rs
@@ -52,8 +52,8 @@ impl HTMLLegendElement {
}
impl VirtualMethods for HTMLLegendElement {
- fn super_type(&self) -> Option<&VirtualMethods> {
- Some(self.upcast::<HTMLElement>() as &VirtualMethods)
+ fn super_type(&self) -> Option<&dyn VirtualMethods> {
+ Some(self.upcast::<HTMLElement>() as &dyn VirtualMethods)
}
fn bind_to_tree(&self, tree_in_doc: bool) {