diff options
| author | Dániel Buga <[email protected]> | 2023-08-14 08:22:22 +0200 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2023-08-14 08:22:22 +0200 |
| commit | ec6bd27df6101bc5f77fa4eace0e8963970231ad (patch) | |
| tree | ecbee40838f3300b1419c855d5e8ec3f17e4ef48 /embassy-executor/src/arch/cortex_m.rs | |
| parent | 6ab0d71d9246cdc65f392212d03d639a51d21098 (diff) | |
Remove thread-context feature
Diffstat (limited to 'embassy-executor/src/arch/cortex_m.rs')
| -rw-r--r-- | embassy-executor/src/arch/cortex_m.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/embassy-executor/src/arch/cortex_m.rs b/embassy-executor/src/arch/cortex_m.rs index 6c1300ae5..a29e5b23e 100644 --- a/embassy-executor/src/arch/cortex_m.rs +++ b/embassy-executor/src/arch/cortex_m.rs | |||
| @@ -21,9 +21,7 @@ mod thread { | |||
| 21 | pub struct Context; | 21 | pub struct Context; |
| 22 | 22 | ||
| 23 | impl ThreadContext for Context { | 23 | impl ThreadContext for Context { |
| 24 | #[cfg(feature = "thread-context")] | ||
| 25 | fn context(&self) -> OpaqueThreadContext { | 24 | fn context(&self) -> OpaqueThreadContext { |
| 26 | // Enabling thread-context is not incorrect, just wasteful. | ||
| 27 | OpaqueThreadContext(0) | 25 | OpaqueThreadContext(0) |
| 28 | } | 26 | } |
| 29 | 27 | ||
