From 4d551a586589b9fd8b5f92d2f98b90be4144154e Mon Sep 17 00:00:00 2001 From: kalkyl Date: Thu, 27 Apr 2023 19:37:19 +0200 Subject: Update embassy --- src/ioctl.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ioctl.rs b/src/ioctl.rs index 89b20a2d6..0fee1ad19 100644 --- a/src/ioctl.rs +++ b/src/ioctl.rs @@ -25,12 +25,20 @@ enum IoctlStateInner { Done { resp_len: usize }, } -#[derive(Default)] struct Wakers { control: WakerRegistration, runner: WakerRegistration, } +impl Default for Wakers { + fn default() -> Self { + Self { + control: WakerRegistration::new(), + runner: WakerRegistration::new(), + } + } +} + pub struct IoctlState { state: Cell, wakers: RefCell, -- cgit