Retain timer_queue_item

This commit is contained in:
Dániel Buga 2025-08-17 11:45:53 +02:00
parent b96f44cfd4
commit 1bf3a44e5d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased - ReleaseDate
- Added `extern "Rust" fn __embassy_time_queue_item_from_waker`
- Removed `TaskRef::dangling` and `TaskRef::timer_queue_item`
- Removed `TaskRef::dangling`
- Added `embassy_time_queue_utils` as a dependency
- Moved the `TimeQueueItem` struct and `timer-item-payload-size-*` features into embassy-time-queue-utils

View File

@ -140,7 +140,7 @@ impl TaskRef {
/// Safety
///
/// This function must only be called in the context of the integrated timer queue.
unsafe fn timer_queue_item(mut self) -> &'static mut TimerQueueItem {
pub unsafe fn timer_queue_item(mut self) -> &'static mut TimerQueueItem {
unsafe { &mut self.ptr.as_mut().timer_queue_item }
}