diff options
| author | Matt Johnston <[email protected]> | 2022-11-05 22:55:04 +0800 |
|---|---|---|
| committer | Matt Johnston <[email protected]> | 2022-11-06 11:33:38 +0800 |
| commit | 14a2d1524080593f7795fe14950a3f0ee6e2b409 (patch) | |
| tree | 1adb8f43c0d9d55ee20c3767cb6623c21ccb628c /embassy-sync/src/waitqueue | |
| parent | b99533607ceed225dd12ae73aaa9a0d969a7365e (diff) | |
Derive Default for WakerRegistration
This simplifies creating arrays of WakerRegistrations
Diffstat (limited to 'embassy-sync/src/waitqueue')
| -rw-r--r-- | embassy-sync/src/waitqueue/waker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-sync/src/waitqueue/waker.rs b/embassy-sync/src/waitqueue/waker.rs index 64e300eb8..9ce94a089 100644 --- a/embassy-sync/src/waitqueue/waker.rs +++ b/embassy-sync/src/waitqueue/waker.rs | |||
| @@ -6,7 +6,7 @@ use crate::blocking_mutex::raw::CriticalSectionRawMutex; | |||
| 6 | use crate::blocking_mutex::Mutex; | 6 | use crate::blocking_mutex::Mutex; |
| 7 | 7 | ||
| 8 | /// Utility struct to register and wake a waker. | 8 | /// Utility struct to register and wake a waker. |
| 9 | #[derive(Debug)] | 9 | #[derive(Debug, Default)] |
| 10 | pub struct WakerRegistration { | 10 | pub struct WakerRegistration { |
| 11 | waker: Option<Waker>, | 11 | waker: Option<Waker>, |
| 12 | } | 12 | } |
