executor: remove useless not_send in SendSpwaner.

This commit is contained in:
Dario Nieuwenhuis 2022-04-25 16:38:56 +02:00
parent 97e24b0568
commit 52ed08cf95

View File

@ -105,7 +105,6 @@ impl Spawner {
pub fn make_send(&self) -> SendSpawner {
SendSpawner {
executor: self.executor,
not_send: PhantomData,
}
}
}
@ -120,7 +119,6 @@ impl Spawner {
#[derive(Copy, Clone)]
pub struct SendSpawner {
executor: &'static raw::Executor,
not_send: PhantomData<*mut ()>,
}
unsafe impl Send for SendSpawner {}