Add clone to StateHandle

This commit is contained in:
hodasemi 2024-03-27 16:07:01 +01:00
parent ff076d016a
commit 0dfb852d28

View file

@ -22,6 +22,7 @@ struct State {
/// Opaque handle for a State /// Opaque handle for a State
/// only used for updating callbacks /// only used for updating callbacks
#[derive(Clone)]
pub struct StateHandle { pub struct StateHandle {
state: Arc<State>, state: Arc<State>,
} }