Fixed thread test

This commit is contained in:
Joe Bellus 2024-04-19 19:52:34 -04:00
parent 5896818dbd
commit a1686899e5
1 changed files with 4 additions and 3 deletions

View File

@ -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) {}
}