diff --git a/ecs/src/resources.rs b/ecs/src/resources.rs index 1dc7b9c..d441efc 100644 --- a/ecs/src/resources.rs +++ b/ecs/src/resources.rs @@ -76,10 +76,6 @@ impl Resources { .flatten() } - pub fn get_mut(&mut self) -> &mut T { - self.get_mut_opt::().unwrap() - } - pub fn get_mut_by_type_id(&mut self, type_id: TypeId) -> &mut T { self.get_mut_opt_by_type_id(type_id).unwrap() } @@ -89,7 +85,7 @@ impl Resources { } pub fn get_mut_unchecked<'a, T: Resource>(&mut self) -> &'a mut T { - unsafe { remove_life_time_mut(self.get_mut::()) } + unsafe { remove_life_time_mut(GetDisjointMut::<'_, &'_ mut T>::get_mut(self).unwrap()) } } pub fn get_mut_opt(&mut self) -> Option<&mut T> {