diff options
| author | Badr Bouslikhin <[email protected]> | 2024-09-06 18:56:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-06 18:56:11 +0200 |
| commit | 94f109aec117699f86aa9915e72c0b275cf3cc4a (patch) | |
| tree | 58c78f13440beb85fa37fcecc5f26be7a43ce369 /embassy-executor | |
| parent | 0e477a4df506981e770e41edec31e2bc0cd6b6c6 (diff) | |
| parent | 1cf778904d597a5bc01a4b7862f965681636faf1 (diff) | |
Merge branch 'embassy-rs:main' into buffered-uart-rx-fix
Diffstat (limited to 'embassy-executor')
| -rw-r--r-- | embassy-executor/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-executor/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-executor/src/raw/waker.rs | 3 |
3 files changed, 2 insertions, 4 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index 5984cc49c..01fa28b88 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml | |||
| @@ -79,7 +79,7 @@ arch-cortex-m = ["_arch", "dep:cortex-m"] | |||
| 79 | ## RISC-V 32 | 79 | ## RISC-V 32 |
| 80 | arch-riscv32 = ["_arch"] | 80 | arch-riscv32 = ["_arch"] |
| 81 | ## WASM | 81 | ## WASM |
| 82 | arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"] | 82 | arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys", "critical-section/std"] |
| 83 | ## AVR | 83 | ## AVR |
| 84 | arch-avr = ["_arch", "dep:portable-atomic", "dep:avr-device"] | 84 | arch-avr = ["_arch", "dep:portable-atomic", "dep:avr-device"] |
| 85 | 85 | ||
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs index 553ed76d3..6a2e493a2 100644 --- a/embassy-executor/src/lib.rs +++ b/embassy-executor/src/lib.rs | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #![cfg_attr(not(any(feature = "arch-std", feature = "arch-wasm")), no_std)] | 1 | #![cfg_attr(not(any(feature = "arch-std", feature = "arch-wasm")), no_std)] |
| 2 | #![cfg_attr(feature = "nightly", feature(waker_getters))] | ||
| 3 | #![allow(clippy::new_without_default)] | 2 | #![allow(clippy::new_without_default)] |
| 4 | #![doc = include_str!("../README.md")] | 3 | #![doc = include_str!("../README.md")] |
| 5 | #![warn(missing_docs)] | 4 | #![warn(missing_docs)] |
diff --git a/embassy-executor/src/raw/waker.rs b/embassy-executor/src/raw/waker.rs index 8d3910a25..8bb2cfd05 100644 --- a/embassy-executor/src/raw/waker.rs +++ b/embassy-executor/src/raw/waker.rs | |||
| @@ -50,8 +50,7 @@ pub fn task_from_waker(waker: &Waker) -> TaskRef { | |||
| 50 | 50 | ||
| 51 | #[cfg(feature = "nightly")] | 51 | #[cfg(feature = "nightly")] |
| 52 | { | 52 | { |
| 53 | let raw_waker = waker.as_raw(); | 53 | (waker.vtable(), waker.data()) |
| 54 | (raw_waker.vtable(), raw_waker.data()) | ||
| 55 | } | 54 | } |
| 56 | }; | 55 | }; |
| 57 | 56 | ||
