Skip to content

Commit 230e215

Browse files
committed
Fixed elided named lifetimes warn
1 parent 2ed54b5 commit 230e215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecs/component.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl ComponentStorage {
138138
pub async fn get_mut<'a, T: Component>(
139139
&'a self,
140140
entity_id: impl TryInto<usize>,
141-
) -> Result<ComponentRefMut<T>> {
141+
) -> Result<ComponentRefMut<'a, T>> {
142142
let type_id = TypeId::of::<T>();
143143
let entity_id = entity_id.try_into().map_err(|_| Error::ConversionError)?;
144144
let storage = self

0 commit comments

Comments
 (0)