From 40899108274fa5f346ffd7a110315d25abfc741a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Sun, 10 Nov 2024 17:28:09 +0500 Subject: [PATCH] wip --- src/io.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/io.rs b/src/io.rs index 2d48c0f..1cb3c66 100644 --- a/src/io.rs +++ b/src/io.rs @@ -659,11 +659,13 @@ mod tests { let keepalive_timeout = config.keepalive_timeout(); let rio = io.get_ref(); - let state = Rc::new(RefCell::new(DispatcherState { - error: None, - base: 0, - queue: VecDeque::new(), - })); + let state = Rc::new(DispatcherState { + error: Cell::new(None), + base: Cell::new(0), + ready: Cell::new(false), + waker: LocalWaker::default(), + queue: RefCell::new(VecDeque::new()), + }); ( Dispatcher {