aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <[email protected]>2022-11-05 22:55:04 +0800
committerMatt Johnston <[email protected]>2022-11-06 11:33:38 +0800
commit14a2d1524080593f7795fe14950a3f0ee6e2b409 (patch)
tree1adb8f43c0d9d55ee20c3767cb6623c21ccb628c
parentb99533607ceed225dd12ae73aaa9a0d969a7365e (diff)
Derive Default for WakerRegistration
This simplifies creating arrays of WakerRegistrations
-rw-r--r--embassy-sync/src/waitqueue/waker.rs2
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;
6use crate::blocking_mutex::Mutex; 6use 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)]
10pub struct WakerRegistration { 10pub struct WakerRegistration {
11 waker: Option<Waker>, 11 waker: Option<Waker>,
12} 12}