sync/signal: Implement Default for Signal

This commit is contained in:
Matt Johnston 2022-11-22 21:55:10 +08:00
parent 14a2d15240
commit 536b6a2de5

View File

@ -56,6 +56,15 @@ where
}
}
impl<M, T> Default for Signal<M, T>
where
M: RawMutex,
{
fn default() -> Self {
Self::new()
}
}
impl<M, T: Send> Signal<M, T>
where
M: RawMutex,