aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src/arch/std.rs
diff options
context:
space:
mode:
authorDániel Buga <[email protected]>2023-08-12 22:08:46 +0200
committerDániel Buga <[email protected]>2023-08-12 22:17:03 +0200
commitbce250bbdc18f025547f59c30a7bec24826b3aea (patch)
tree7e790a57aa7f4a6f3db83cf615d5402e0fcc6230 /embassy-executor/src/arch/std.rs
parentfbf50cdae899dc1cd2f232b880e096d0fc51f49c (diff)
Remove unnecessary !Send markers
Diffstat (limited to 'embassy-executor/src/arch/std.rs')
-rw-r--r--embassy-executor/src/arch/std.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/embassy-executor/src/arch/std.rs b/embassy-executor/src/arch/std.rs
index 28e25fbd0..b08974a02 100644
--- a/embassy-executor/src/arch/std.rs
+++ b/embassy-executor/src/arch/std.rs
@@ -8,7 +8,6 @@ compile_error!("`arch-std` requires `thread-context`.");
8pub use thread::*; 8pub use thread::*;
9#[cfg(feature = "executor-thread")] 9#[cfg(feature = "executor-thread")]
10mod thread { 10mod thread {
11 use std::marker::PhantomData;
12 use std::sync::{Condvar, Mutex}; 11 use std::sync::{Condvar, Mutex};
13 12
14 #[cfg(feature = "nightly")] 13 #[cfg(feature = "nightly")]
@@ -20,16 +19,13 @@ mod thread {
20 /// TODO 19 /// TODO
21 // Name pending 20 // Name pending
22 pub struct StdThreadCtx { 21 pub struct StdThreadCtx {
23 _not_send: PhantomData<*mut ()>,
24 signaler: &'static Signaler, 22 signaler: &'static Signaler,
25 } 23 }
26 24
27 impl Default for StdThreadCtx { 25 impl Default for StdThreadCtx {
28 fn default() -> Self { 26 fn default() -> Self {
29 let signaler = &*Box::leak(Box::new(Signaler::new()));
30 Self { 27 Self {
31 _not_send: PhantomData, 28 signaler: &*Box::leak(Box::new(Signaler::new())),
32 signaler,
33 } 29 }
34 } 30 }
35 } 31 }