Skip to content

Commit

Permalink
Fixed elided named lifetimes warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweattypalms committed Sep 10, 2024
1 parent 2ed54b5 commit 230e215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecs/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl ComponentStorage {
pub async fn get_mut<'a, T: Component>(
&'a self,
entity_id: impl TryInto<usize>,
) -> Result<ComponentRefMut<T>> {
) -> Result<ComponentRefMut<'a, T>> {
let type_id = TypeId::of::<T>();
let entity_id = entity_id.try_into().map_err(|_| Error::ConversionError)?;
let storage = self
Expand Down

0 comments on commit 230e215

Please sign in to comment.