move name implementation as default implementation to the trait and remove overrides.

This commit is contained in:
toidiu 2017-09-03 16:30:48 -04:00
parent a3df0cf4de
commit 99e4504f85
13 changed files with 1 additions and 45 deletions

View file

@ -3030,8 +3030,6 @@ impl ElementPerformFullscreenEnter {
}
impl Runnable for ElementPerformFullscreenEnter {
fn name(&self) -> &'static str { "ElementPerformFullscreenEnter" }
#[allow(unrooted_must_root)]
fn handler(self: Box<ElementPerformFullscreenEnter>) {
let element = self.element.root();
@ -3085,8 +3083,6 @@ impl ElementPerformFullscreenExit {
}
impl Runnable for ElementPerformFullscreenExit {
fn name(&self) -> &'static str { "ElementPerformFullscreenExit" }
#[allow(unrooted_must_root)]
fn handler(self: Box<ElementPerformFullscreenExit>) {
let element = self.element.root();