mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Move boxing to runnable initialization
This commit is contained in:
parent
5f7324a9a5
commit
ad30275d04
10 changed files with 20 additions and 20 deletions
|
@ -13,5 +13,5 @@ use script_thread::Runnable;
|
|||
use std::result::Result;
|
||||
|
||||
pub trait TaskSource {
|
||||
fn queue<T: Runnable + Send + 'static>(&self, msg: T, window: &Window) -> Result<(), ()>;
|
||||
fn queue<T: Runnable + Send + 'static>(&self, msg: Box<T>, window: &Window) -> Result<(), ()>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue