mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
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 {
|
||||
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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user