diff options
| author | Matt Johnston <[email protected]> | 2022-11-22 21:55:10 +0800 |
|---|---|---|
| committer | Matt Johnston <[email protected]> | 2022-11-22 21:55:42 +0800 |
| commit | 536b6a2de5c5342a27dc1095f5642792fb6d860b (patch) | |
| tree | b81035468f4b868ac29710508b961aae820aade5 | |
| parent | 14a2d1524080593f7795fe14950a3f0ee6e2b409 (diff) | |
sync/signal: Implement Default for Signal
| -rw-r--r-- | embassy-sync/src/signal.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/embassy-sync/src/signal.rs b/embassy-sync/src/signal.rs index c3c10a8af..bea67d8be 100644 --- a/embassy-sync/src/signal.rs +++ b/embassy-sync/src/signal.rs | |||
| @@ -56,6 +56,15 @@ where | |||
| 56 | } | 56 | } |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | impl<M, T> Default for Signal<M, T> | ||
| 60 | where | ||
| 61 | M: RawMutex, | ||
| 62 | { | ||
| 63 | fn default() -> Self { | ||
| 64 | Self::new() | ||
| 65 | } | ||
| 66 | } | ||
| 67 | |||
| 59 | impl<M, T: Send> Signal<M, T> | 68 | impl<M, T: Send> Signal<M, T> |
| 60 | where | 69 | where |
| 61 | M: RawMutex, | 70 | M: RawMutex, |
