diff options
Diffstat (limited to 'components/script/messaging.rs')
-rw-r--r-- | components/script/messaging.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/messaging.rs b/components/script/messaging.rs index 76bd536b18c..af768222fd6 100644 --- a/components/script/messaging.rs +++ b/components/script/messaging.rs @@ -235,7 +235,7 @@ impl ScriptChan for SendableMainThreadScriptChan { self.0.send(msg).map_err(|_| ()) } - fn as_boxed(&self) -> Box<dyn ScriptChan + Send> { + fn as_boxed(&self) -> Box<dyn ScriptChan> { Box::new(SendableMainThreadScriptChan((self.0).clone())) } } @@ -251,7 +251,7 @@ impl ScriptChan for MainThreadScriptChan { .map_err(|_| ()) } - fn as_boxed(&self) -> Box<dyn ScriptChan + Send> { + fn as_boxed(&self) -> Box<dyn ScriptChan> { Box::new(MainThreadScriptChan((self.0).clone())) } } |