Fixed thread test
This commit is contained in:
parent
5896818dbd
commit
a1686899e5
|
@ -278,8 +278,9 @@ mod tests {
|
||||||
|
|
||||||
let state = State::new(S::default());
|
let state = State::new(S::default());
|
||||||
App::new(root_view).bind_state(state.clone());
|
App::new(root_view).bind_state(state.clone());
|
||||||
std::thread::spawn(move || {
|
is_send(state);
|
||||||
state.get_mut().i = 10;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
|
fn is_send(v: impl Send) {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue