From a1686899e50dd9436a581a8b140edb1307f0f7cd Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Fri, 19 Apr 2024 19:52:34 -0400 Subject: [PATCH] Fixed thread test --- src/app.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index d6c0863..e9baa31 100644 --- a/src/app.rs +++ b/src/app.rs @@ -278,8 +278,9 @@ mod tests { let state = State::new(S::default()); App::new(root_view).bind_state(state.clone()); - std::thread::spawn(move || { - state.get_mut().i = 10; - }); + is_send(state); } + + #[allow(dead_code)] + fn is_send(v: impl Send) {} }