Derive Default for WakerRegistration

This simplifies creating arrays of WakerRegistrations
This commit is contained in:
Matt Johnston 2022-11-05 22:55:04 +08:00
parent b99533607c
commit 14a2d15240

View File

@ -6,7 +6,7 @@ use crate::blocking_mutex::raw::CriticalSectionRawMutex;
use crate::blocking_mutex::Mutex;
/// Utility struct to register and wake a waker.
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct WakerRegistration {
waker: Option<Waker>,
}