Explorar el Código

remove static bound on owner

Evan Almloff hace 2 años
padre
commit
88198fc47c
Se han modificado 1 ficheros con 1 adiciones y 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,
 }