Rename Task to TaskBox

This commit is contained in:
Anthony Ramine 2017-09-20 09:59:52 +02:00
parent f088b708c9
commit 52527d6f9d
19 changed files with 71 additions and 69 deletions

View file

@ -13,7 +13,7 @@ use servo_atoms::Atom;
use std::fmt;
use std::result::Result;
use std::sync::mpsc::Sender;
use task::{Task, TaskCanceller};
use task::{TaskBox, TaskCanceller};
use task_source::TaskSource;
#[derive(Clone, JSTraceable)]
@ -32,7 +32,7 @@ impl TaskSource for UserInteractionTaskSource {
canceller: &TaskCanceller,
) -> Result<(), ()>
where
T: Task + 'static,
T: TaskBox + 'static,
{
let msg = MainThreadScriptMsg::Common(CommonScriptMsg::Task(
ScriptThreadEventCategory::InputEvent,