aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbuttonelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rw-r--r--components/script/dom/htmlbuttonelement.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs
index 7023a8ffdfe..8406fa2f895 100644
--- a/components/script/dom/htmlbuttonelement.rs
+++ b/components/script/dom/htmlbuttonelement.rs
@@ -191,11 +191,7 @@ impl VirtualMethods for HTMLButtonElement {
}
}
-impl<'a> FormControl<'a> for &'a HTMLButtonElement {
- fn to_element(self) -> &'a Element {
- ElementCast::from_ref(self)
- }
-}
+impl FormControl for HTMLButtonElement {}
impl<'a> Activatable for &'a HTMLButtonElement {
fn as_element<'b>(&'b self) -> &'b Element {