fix: provide_root_context on root scopes

This commit is contained in:
Jonathan Kelley 2022-01-24 02:34:16 -05:00
parent 02abb5e8d4
commit d9a07ddddb

View file

@ -695,6 +695,7 @@ impl ScopeState {
.insert(TypeId::of::<T>(), value.clone())
.map(|f| f.downcast::<T>().ok())
.flatten();
return value;
}
let mut search_parent = self.parent_scope;