module: Make ModuleImpl Send

This commit is contained in:
Kenny Levinsen
2019-08-05 23:15:11 +02:00
parent 0b5a6f6538
commit 840c8496ab
+2 -2
View File
@@ -54,12 +54,12 @@ pub trait ModuleImpl {
}
pub struct Module {
m: Arc<Mutex<Box<dyn ModuleImpl>>>,
m: Arc<Mutex<Box<dyn ModuleImpl + Send>>>,
pos: (u32, u32, u32, u32),
}
impl Module {
pub fn new(m: Box<dyn ModuleImpl>, pos: (u32, u32, u32, u32)) -> Module {
pub fn new(m: Box<dyn ModuleImpl + Send>, pos: (u32, u32, u32, u32)) -> Module {
Module {
m: Arc::new(Mutex::new(m)),
pos: pos,