diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-20 09:59:52 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-20 10:07:29 +0200 |
commit | 52527d6f9dfaae13458059243d975f5336bdead4 (patch) | |
tree | a9f1b12f82b2aedbc3d4c46851f9b0d09c3e2576 /components/script/task_source/networking.rs | |
parent | f088b708c93e0a131cbfccf5c9b3797018f1c4ee (diff) | |
download | servo-52527d6f9dfaae13458059243d975f5336bdead4.tar.gz servo-52527d6f9dfaae13458059243d975f5336bdead4.zip |
Rename Task to TaskBox
Diffstat (limited to 'components/script/task_source/networking.rs')
-rw-r--r-- | components/script/task_source/networking.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/task_source/networking.rs b/components/script/task_source/networking.rs index 57dabbbfd39..80acc324f52 100644 --- a/components/script/task_source/networking.rs +++ b/components/script/task_source/networking.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use script_runtime::{CommonScriptMsg, ScriptChan, ScriptThreadEventCategory}; -use task::{Task, TaskCanceller}; +use task::{TaskBox, TaskCanceller}; use task_source::TaskSource; #[derive(JSTraceable)] @@ -22,7 +22,7 @@ impl TaskSource for NetworkingTaskSource { canceller: &TaskCanceller, ) -> Result<(), ()> where - T: Task + 'static, + T: TaskBox + '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 + 'static, + T: TaskBox + 'static, { self.0.send(CommonScriptMsg::Task(ScriptThreadEventCategory::NetworkEvent, msg)) } |