diff options
| author | James Munns <[email protected]> | 2025-04-08 10:11:07 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-11 14:45:06 +0200 |
| commit | 3929142f4c08028ea1982e79fd912e1a44900892 (patch) | |
| tree | 161e59775d67428deca6d26001a4a450c92a278c /embassy-executor/src/raw/deadline.rs | |
| parent | b1b2955b604f558d8bd2fcca07b8fd8da3e236fa (diff) | |
One more must_use
Diffstat (limited to 'embassy-executor/src/raw/deadline.rs')
| -rw-r--r-- | embassy-executor/src/raw/deadline.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-executor/src/raw/deadline.rs b/embassy-executor/src/raw/deadline.rs index da07d1aac..ae6394822 100644 --- a/embassy-executor/src/raw/deadline.rs +++ b/embassy-executor/src/raw/deadline.rs | |||
| @@ -135,6 +135,7 @@ impl Deadline { | |||
| 135 | /// | 135 | /// |
| 136 | /// This sets the deadline to the default value of `u64::MAX`, meaning all | 136 | /// This sets the deadline to the default value of `u64::MAX`, meaning all |
| 137 | /// tasks with set deadlines will be scheduled BEFORE this task. | 137 | /// tasks with set deadlines will be scheduled BEFORE this task. |
| 138 | #[must_use = "Clearing deadline must be polled to be effective"] | ||
| 138 | pub fn clear_current_task_deadline() -> impl Future<Output = Self> { | 139 | pub fn clear_current_task_deadline() -> impl Future<Output = Self> { |
| 139 | poll_fn(move |cx| { | 140 | poll_fn(move |cx| { |
| 140 | let task = super::task_from_waker(cx.waker()); | 141 | let task = super::task_from_waker(cx.waker()); |
