Hide private function

This commit is contained in:
Dániel Buga 2024-12-17 09:54:48 +01:00
parent d0c611b415
commit 5a246887a4
No known key found for this signature in database

View File

@ -47,7 +47,7 @@ impl TimerQueue {
core::ptr::null_mut()
}
pub fn alarm(&self) -> AlarmHandle {
fn alarm(&self) -> AlarmHandle {
unsafe {
let alarm = &mut *self.alarm.get();
*alarm.get_or_insert_with(|| set_up_alarm(self.priority, self.context()))