Explorar o código

remove static bound on owner

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
88198fc47c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/hooks/src/use_shared_state.rs

+ 1 - 1
packages/hooks/src/use_shared_state.rs

@@ -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,
 }