mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
move name implementation as default implementation to the trait and remove overrides.
This commit is contained in:
parent
a3df0cf4de
commit
99e4504f85
13 changed files with 1 additions and 45 deletions
|
@ -474,8 +474,6 @@ pub struct AnnounceConnectionRunnable {
|
|||
}
|
||||
|
||||
impl Runnable for AnnounceConnectionRunnable {
|
||||
fn name(&self) -> &'static str { "EventSource AnnounceConnectionRunnable" }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#announce-the-connection
|
||||
fn handler(self: Box<AnnounceConnectionRunnable>) {
|
||||
let event_source = self.event_source.root();
|
||||
|
@ -491,8 +489,6 @@ pub struct FailConnectionRunnable {
|
|||
}
|
||||
|
||||
impl Runnable for FailConnectionRunnable {
|
||||
fn name(&self) -> &'static str { "EventSource FailConnectionRunnable" }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#fail-the-connection
|
||||
fn handler(self: Box<FailConnectionRunnable>) {
|
||||
let event_source = self.event_source.root();
|
||||
|
@ -509,8 +505,6 @@ pub struct ReestablishConnectionRunnable {
|
|||
}
|
||||
|
||||
impl Runnable for ReestablishConnectionRunnable {
|
||||
fn name(&self) -> &'static str { "EventSource ReestablishConnectionRunnable" }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#reestablish-the-connection
|
||||
fn handler(self: Box<ReestablishConnectionRunnable>) {
|
||||
let event_source = self.event_source.root();
|
||||
|
@ -568,8 +562,6 @@ pub struct DispatchEventRunnable {
|
|||
}
|
||||
|
||||
impl Runnable for DispatchEventRunnable {
|
||||
fn name(&self) -> &'static str { "EventSource DispatchEventRunnable" }
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dispatchMessage
|
||||
fn handler(self: Box<DispatchEventRunnable>) {
|
||||
let event_source = self.event_source.root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue