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/riscv32.rs | |
| parent | fbf50cdae899dc1cd2f232b880e096d0fc51f49c (diff) | |
Remove unnecessary !Send markers
Diffstat (limited to 'embassy-executor/src/arch/riscv32.rs')
| -rw-r--r-- | embassy-executor/src/arch/riscv32.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/embassy-executor/src/arch/riscv32.rs b/embassy-executor/src/arch/riscv32.rs index 5f766442d..becc0245a 100644 --- a/embassy-executor/src/arch/riscv32.rs +++ b/embassy-executor/src/arch/riscv32.rs | |||
| @@ -8,7 +8,6 @@ compile_error!("`thread-context` is not supported with `arch-riscv32`."); | |||
| 8 | pub use thread::*; | 8 | pub use thread::*; |
| 9 | #[cfg(feature = "executor-thread")] | 9 | #[cfg(feature = "executor-thread")] |
| 10 | mod thread { | 10 | mod thread { |
| 11 | use core::marker::PhantomData; | ||
| 12 | use core::sync::atomic::{AtomicBool, Ordering}; | 11 | use core::sync::atomic::{AtomicBool, Ordering}; |
| 13 | 12 | ||
| 14 | #[cfg(feature = "nightly")] | 13 | #[cfg(feature = "nightly")] |
| @@ -28,9 +27,7 @@ mod thread { | |||
| 28 | /// TODO | 27 | /// TODO |
| 29 | // Name pending | 28 | // Name pending |
| 30 | #[derive(Default)] // Default enables Executor::new | 29 | #[derive(Default)] // Default enables Executor::new |
| 31 | pub struct RiscVThreadContext { | 30 | pub struct RiscVThreadContext; |
| 32 | _not_send: PhantomData<*mut ()>, | ||
| 33 | } | ||
| 34 | 31 | ||
| 35 | impl ThreadContext for RiscVThreadContext { | 32 | impl ThreadContext for RiscVThreadContext { |
| 36 | fn context(&self) -> OpaqueThreadContext { | 33 | fn context(&self) -> OpaqueThreadContext { |
