executor: remove useless not_send in SendSpwaner.
This commit is contained in:
parent
97e24b0568
commit
52ed08cf95
@ -105,7 +105,6 @@ impl Spawner {
|
|||||||
pub fn make_send(&self) -> SendSpawner {
|
pub fn make_send(&self) -> SendSpawner {
|
||||||
SendSpawner {
|
SendSpawner {
|
||||||
executor: self.executor,
|
executor: self.executor,
|
||||||
not_send: PhantomData,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -120,7 +119,6 @@ impl Spawner {
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct SendSpawner {
|
pub struct SendSpawner {
|
||||||
executor: &'static raw::Executor,
|
executor: &'static raw::Executor,
|
||||||
not_send: PhantomData<*mut ()>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for SendSpawner {}
|
unsafe impl Send for SendSpawner {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user