diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-07 22:20:46 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-07 22:20:46 +0200 |
commit | 58dd1d5d79070c3066f50975c918de291bbdf162 (patch) | |
tree | c693c2360e1d8866987c1384168b9edb393d00f0 /ecs/src/lib.rs | |
parent | 9faa8b8f530f3640e1a604a4888cc3fa7beafd5f (diff) |
refactor(ecs): make FromLockedOptional not take Lock
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r-- | ecs/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index 2c653ee..254ee12 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -618,7 +618,7 @@ pub struct EntityComponentRef<'a> impl<'a> EntityComponentRef<'a> { - pub fn component(&self) -> &'a Lock<Box<dyn Component>> + fn component(&self) -> &'a Lock<Box<dyn Component>> { self.comp.component() } |