diff --git a/src/commands.rs b/src/commands.rs
index 82903e1..cd61a67 100644
--- a/src/commands.rs
+++ b/src/commands.rs
@@ -47,7 +47,7 @@ pub struct ReferenceFrameCommands<'a, P: GridPrecision> {
reference_frame: ReferenceFrame
,
}
-impl<'a, P: GridPrecision> ReferenceFrameCommands<'a, P> {
+impl ReferenceFrameCommands<'_, P> {
/// Get a reference to the current reference frame.
pub fn frame(&mut self) -> &ReferenceFrame {
&self.reference_frame
@@ -173,7 +173,7 @@ impl<'a, P: GridPrecision> ReferenceFrameCommands<'a, P> {
}
/// Insert the reference frame on drop.
-impl<'a, P: GridPrecision> Drop for ReferenceFrameCommands<'a, P> {
+impl Drop for ReferenceFrameCommands<'_, P> {
fn drop(&mut self) {
self.commands
.entity(self.entity)
@@ -188,7 +188,7 @@ pub struct SpatialEntityCommands<'a, P: GridPrecision> {
phantom: PhantomData,
}
-impl<'a, P: GridPrecision> SpatialEntityCommands<'a, P> {
+impl SpatialEntityCommands<'_, P> {
/// Insert a component on this reference frame
pub fn insert(&mut self, bundle: impl Bundle) -> &mut Self {
self.commands.entity(self.entity).insert(bundle);
diff --git a/src/reference_frame/local_origin.rs b/src/reference_frame/local_origin.rs
index 0decd54..e9ae37c 100644
--- a/src/reference_frame/local_origin.rs
+++ b/src/reference_frame/local_origin.rs
@@ -230,7 +230,7 @@ pub struct ReferenceFrames<'w, 's, P: GridPrecision> {
frame_query: Query<'w, 's, (Entity, Read>, Option>)>,
}
-impl<'w, 's, P: GridPrecision> ReferenceFrames<'w, 's, P> {
+impl ReferenceFrames<'_, '_, P> {
/// Get a [`ReferenceFrame`] from its `Entity`.
pub fn get(&self, frame_entity: Entity) -> &ReferenceFrame {
self.frame_query
@@ -301,7 +301,7 @@ pub struct ReferenceFramesMut<'w, 's, P: GridPrecision> {
frame_query: Query<'w, 's, (Entity, Write>, Option>)>,
}
-impl<'w, 's, P: GridPrecision> ReferenceFramesMut<'w, 's, P> {
+impl ReferenceFramesMut<'_, '_, P> {
/// Get mutable access to the [`ReferenceFrame`], and run the provided function or closure,
/// optionally returning data.
///
diff --git a/src/world_query.rs b/src/world_query.rs
index bf528f5..b9a9ec3 100644
--- a/src/world_query.rs
+++ b/src/world_query.rs
@@ -21,7 +21,7 @@ pub struct GridTransform {
pub cell: &'static mut GridCell,
}
-impl<'w, P: GridPrecision> GridTransformItem<'w, P> {
+impl GridTransformItem<'_, P> {
/// Compute the global position with double precision.
pub fn position_double(&self, reference_frame: &ReferenceFrame) -> DVec3 {
reference_frame.grid_position_double(&self.cell, &self.transform)
@@ -41,7 +41,7 @@ impl<'w, P: GridPrecision> GridTransformItem<'w, P> {
}
}
-impl<'w, P: GridPrecision> GridTransformReadOnlyItem<'w, P> {
+impl GridTransformReadOnlyItem<'_, P> {
/// Compute the global position with double precision.
pub fn position_double(&self, reference_frame: &ReferenceFrame) -> DVec3 {
reference_frame.grid_position_double(self.cell, self.transform)