diff options
| author | Dániel Buga <[email protected]> | 2023-08-12 22:08:46 +0200 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2023-08-12 22:17:03 +0200 |
| commit | bce250bbdc18f025547f59c30a7bec24826b3aea (patch) | |
| tree | 7e790a57aa7f4a6f3db83cf615d5402e0fcc6230 /embassy-executor/src/arch/xtensa.rs | |
| parent | fbf50cdae899dc1cd2f232b880e096d0fc51f49c (diff) | |
Remove unnecessary !Send markers
Diffstat (limited to 'embassy-executor/src/arch/xtensa.rs')
| -rw-r--r-- | embassy-executor/src/arch/xtensa.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/embassy-executor/src/arch/xtensa.rs b/embassy-executor/src/arch/xtensa.rs index 8e1b917de..6357bfef2 100644 --- a/embassy-executor/src/arch/xtensa.rs +++ b/embassy-executor/src/arch/xtensa.rs | |||
| @@ -27,15 +27,8 @@ mod thread { | |||
| 27 | 27 | ||
| 28 | /// TODO | 28 | /// TODO |
| 29 | // Name pending | 29 | // Name pending |
| 30 | pub struct XtensaThreadContext { | 30 | #[derive(Default)] // Default enables Executor::new |
| 31 | _not_send: PhantomData<*mut ()>, | 31 | pub struct XtensaThreadContext; |
| 32 | } | ||
| 33 | |||
| 34 | impl Default for XtensaThreadContext { | ||
| 35 | fn default() -> Self { | ||
| 36 | Self { _not_send: PhantomData } | ||
| 37 | } | ||
| 38 | } | ||
| 39 | 32 | ||
| 40 | impl ThreadContext for XtensaThreadContext { | 33 | impl ThreadContext for XtensaThreadContext { |
| 41 | fn context(&self) -> OpaqueThreadContext { | 34 | fn context(&self) -> OpaqueThreadContext { |
