remove static bound on owner

This commit is contained in:
Evan Almloff 2023-03-02 11:59:25 -06:00
parent 90b4dd806e
commit 88198fc47c

View file

@ -102,7 +102,7 @@ pub fn use_shared_state<T: 'static>(cx: &ScopeState) -> Option<&UseSharedState<T
state.as_ref().map(|s| &s.state)
}
struct UseSharedStateOwner<T: 'static> {
struct UseSharedStateOwner<T> {
state: UseSharedState<T>,
scope_id: ScopeId,
}