diff options
Diffstat (limited to 'embassy-executor/src/thread.rs')
| -rw-r--r-- | embassy-executor/src/thread.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-executor/src/thread.rs b/embassy-executor/src/thread.rs index 9bbe29500..2d2c6daa5 100644 --- a/embassy-executor/src/thread.rs +++ b/embassy-executor/src/thread.rs | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | use core::marker::PhantomData; | 3 | use core::marker::PhantomData; |
| 4 | 4 | ||
| 5 | use crate::raw::{OpaqueThreadContext, Pender, PenderInner}; | 5 | use crate::raw::{OpaqueThreadContext, Pender}; |
| 6 | use crate::{raw, Spawner}; | 6 | use crate::{raw, Spawner}; |
| 7 | 7 | ||
| 8 | /// TODO | 8 | /// TODO |
| @@ -43,7 +43,7 @@ impl<C: ThreadContext> ThreadModeExecutor<C> { | |||
| 43 | /// Create a new Executor. | 43 | /// Create a new Executor. |
| 44 | pub fn with_context(context: C) -> Self { | 44 | pub fn with_context(context: C) -> Self { |
| 45 | Self { | 45 | Self { |
| 46 | inner: raw::Executor::new(Pender(PenderInner::Thread(context.context()))), | 46 | inner: raw::Executor::new(Pender::Thread(context.context())), |
| 47 | context, | 47 | context, |
| 48 | not_send: PhantomData, | 48 | not_send: PhantomData, |
| 49 | } | 49 | } |
