diff options
Diffstat (limited to 'embassy-executor/src/raw/run_queue_atomics.rs')
| -rw-r--r-- | embassy-executor/src/raw/run_queue_atomics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-executor/src/raw/run_queue_atomics.rs b/embassy-executor/src/raw/run_queue_atomics.rs index a63f0d116..08765e06b 100644 --- a/embassy-executor/src/raw/run_queue_atomics.rs +++ b/embassy-executor/src/raw/run_queue_atomics.rs | |||
| @@ -102,7 +102,7 @@ impl RunQueue { | |||
| 102 | // only allows access to this value while the given task is being polled. | 102 | // only allows access to this value while the given task is being polled. |
| 103 | // This acts as mutual exclusion for access. | 103 | // This acts as mutual exclusion for access. |
| 104 | let mut sorted = | 104 | let mut sorted = |
| 105 | SortedList::<TaskHeader>::new_custom(|lhs, rhs| unsafe { lhs.deadline.get().cmp(&rhs.deadline.get()) }); | 105 | SortedList::<TaskHeader>::new_with_cmp(|lhs, rhs| unsafe { lhs.deadline.get().cmp(&rhs.deadline.get()) }); |
| 106 | 106 | ||
| 107 | loop { | 107 | loop { |
| 108 | // For each loop, grab any newly pended items | 108 | // For each loop, grab any newly pended items |
