We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ed54b5 commit 230e215Copy full SHA for 230e215
src/ecs/component.rs
@@ -138,7 +138,7 @@ impl ComponentStorage {
138
pub async fn get_mut<'a, T: Component>(
139
&'a self,
140
entity_id: impl TryInto<usize>,
141
- ) -> Result<ComponentRefMut<T>> {
+ ) -> Result<ComponentRefMut<'a, T>> {
142
let type_id = TypeId::of::<T>();
143
let entity_id = entity_id.try_into().map_err(|_| Error::ConversionError)?;
144
let storage = self
0 commit comments