From 33cc01562c4aef94e605c9dc675450031a840d72 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 11 Dec 2024 13:52:34 +0100 Subject: refactor(ecs): make system::Param trait not unsafe --- ecs/src/component/local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecs/src/component') diff --git a/ecs/src/component/local.rs b/ecs/src/component/local.rs index 20627bf..aac4255 100644 --- a/ecs/src/component/local.rs +++ b/ecs/src/component/local.rs @@ -11,7 +11,7 @@ pub struct Local<'world, LocalComponent: Component> local_component: ComponentRefMut<'world, LocalComponent>, } -unsafe impl<'world, LocalComponent> SystemParam<'world> for Local<'world, LocalComponent> +impl<'world, LocalComponent> SystemParam<'world> for Local<'world, LocalComponent> where LocalComponent: Component, { -- cgit v1.2.3-18-g5258