mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -394,8 +394,6 @@ struct ConnectionEstablishedTask {
|
|||
}
|
||||
|
||||
impl Runnable for ConnectionEstablishedTask {
|
||||
fn name(&self) -> &'static str { "ConnectionEstablishedTask" }
|
||||
|
||||
/// https://html.spec.whatwg.org/multipage/#feedback-from-the-protocol:concept-websocket-established
|
||||
fn handler(self: Box<Self>) {
|
||||
let ws = self.address.root();
|
||||
|
@ -426,8 +424,6 @@ impl Runnable for BufferedAmountTask {
|
|||
// To be compliant with standards, we need to reset bufferedAmount only when the event loop
|
||||
// reaches step 1. In our implementation, the bytes will already have been sent on a background
|
||||
// thread.
|
||||
fn name(&self) -> &'static str { "BufferedAmountTask" }
|
||||
|
||||
fn handler(self: Box<Self>) {
|
||||
let ws = self.address.root();
|
||||
|
||||
|
@ -444,8 +440,6 @@ struct CloseTask {
|
|||
}
|
||||
|
||||
impl Runnable for CloseTask {
|
||||
fn name(&self) -> &'static str { "CloseTask" }
|
||||
|
||||
fn handler(self: Box<Self>) {
|
||||
let ws = self.address.root();
|
||||
|
||||
|
@ -486,8 +480,6 @@ struct MessageReceivedTask {
|
|||
}
|
||||
|
||||
impl Runnable for MessageReceivedTask {
|
||||
fn name(&self) -> &'static str { "MessageReceivedTask" }
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
fn handler(self: Box<Self>) {
|
||||
let ws = self.address.root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue