aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source/networking.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/task_source/networking.rs')
-rw-r--r--components/script/task_source/networking.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/task_source/networking.rs b/components/script/task_source/networking.rs
index 5d339037729..57dabbbfd39 100644
--- a/components/script/task_source/networking.rs
+++ b/components/script/task_source/networking.rs
@@ -22,7 +22,7 @@ impl TaskSource for NetworkingTaskSource {
canceller: &TaskCanceller,
) -> Result<(), ()>
where
- T: Send + Task + 'static,
+ T: Task + 'static,
{
self.0.send(CommonScriptMsg::Task(
ScriptThreadEventCategory::NetworkEvent,
@@ -36,7 +36,7 @@ impl NetworkingTaskSource {
/// global scope gets destroyed.
pub fn queue_unconditionally<T>(&self, msg: Box<T>) -> Result<(), ()>
where
- T: Task + Send + 'static,
+ T: Task + 'static,
{
self.0.send(CommonScriptMsg::Task(ScriptThreadEventCategory::NetworkEvent, msg))
}