Skip to content

Commit a998e5f

Browse files
fix mismatched_lifetime_syntaxes (#364)
1 parent 65f956f commit a998e5f

12 files changed

+27
-27
lines changed

src/partitioning/bvh/bvh_traverse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Bvh {
7676
///
7777
/// See also the [`Bvh::traverse`] function which is slightly less convenient since it doesn’t
7878
/// rely on the iterator system, but takes a closure that implements [`FnMut`] instead of [`Fn`].
79-
pub fn leaves<F: Fn(&BvhNode) -> bool>(&self, check_node: F) -> Leaves<F> {
79+
pub fn leaves<F: Fn(&BvhNode) -> bool>(&self, check_node: F) -> Leaves<'_, F> {
8080
if let Some(root) = self.nodes.first() {
8181
let mut stack = SmallVec::default();
8282
if root.right.leaf_count() > 0 {

src/query/contact_manifolds/contact_manifolds_composite_shape_composite_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub fn contact_manifolds_composite_shape_composite_shape<'a, ManifoldData, Conta
190190
}
191191

192192
impl WorkspaceData for CompositeShapeCompositeShapeContactManifoldsWorkspace {
193-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
193+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
194194
TypedWorkspaceData::CompositeShapeCompositeShapeContactManifoldsWorkspace(self)
195195
}
196196

src/query/contact_manifolds/contact_manifolds_composite_shape_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub fn contact_manifolds_composite_shape_shape<ManifoldData, ContactData>(
154154
}
155155

156156
impl WorkspaceData for CompositeShapeShapeContactManifoldsWorkspace {
157-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
157+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
158158
TypedWorkspaceData::CompositeShapeShapeContactManifoldsWorkspace(self)
159159
}
160160

src/query/contact_manifolds/contact_manifolds_heightfield_composite_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub fn contact_manifolds_heightfield_composite_shape<ManifoldData, ContactData>(
169169
}
170170

171171
impl WorkspaceData for HeightFieldCompositeShapeContactManifoldsWorkspace {
172-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
172+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
173173
TypedWorkspaceData::HeightfieldCompositeShapeContactManifoldsWorkspace(self)
174174
}
175175

src/query/contact_manifolds/contact_manifolds_heightfield_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub fn contact_manifolds_heightfield_shape<ManifoldData, ContactData>(
189189
}
190190

191191
impl WorkspaceData for HeightFieldShapeContactManifoldsWorkspace {
192-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
192+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
193193
TypedWorkspaceData::HeightfieldShapeContactManifoldsWorkspace(self)
194194
}
195195

src/query/contact_manifolds/contact_manifolds_trimesh_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ pub fn contact_manifolds_trimesh_shape<ManifoldData, ContactData>(
218218
}
219219

220220
impl WorkspaceData for TriMeshShapeContactManifoldsWorkspace {
221-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
221+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
222222
TypedWorkspaceData::TriMeshShapeContactManifoldsWorkspace(self)
223223
}
224224

src/query/contact_manifolds/contact_manifolds_voxels_composite_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use alloc::{boxed::Box, vec::Vec};
1414
use na::Vector3;
1515

1616
impl WorkspaceData for VoxelsShapeContactManifoldsWorkspace<3> {
17-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
17+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
1818
TypedWorkspaceData::VoxelsCompositeShapeContactManifoldsWorkspace(self)
1919
}
2020

src/query/contact_manifolds/contact_manifolds_voxels_shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<const N: usize> VoxelsShapeContactManifoldsWorkspace<N> {
6060
}
6161

6262
impl WorkspaceData for VoxelsShapeContactManifoldsWorkspace<2> {
63-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
63+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
6464
TypedWorkspaceData::VoxelsShapeContactManifoldsWorkspace(self)
6565
}
6666

src/query/contact_manifolds/contact_manifolds_voxels_voxels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use alloc::{boxed::Box, vec::Vec};
1313
use na::Vector4;
1414

1515
impl WorkspaceData for VoxelsShapeContactManifoldsWorkspace<4> {
16-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData {
16+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_> {
1717
TypedWorkspaceData::VoxelsVoxelsContactManifoldsWorkspace(self)
1818
}
1919

src/query/contact_manifolds/contact_manifolds_workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl DeserializableWorkspaceData {
9494
/// Data from a [`ContactManifoldsWorkspace`].
9595
pub trait WorkspaceData: DowncastSync {
9696
/// Gets the underlying workspace as an enum.
97-
fn as_typed_workspace_data(&self) -> TypedWorkspaceData;
97+
fn as_typed_workspace_data(&self) -> TypedWorkspaceData<'_>;
9898

9999
/// Clones `self`.
100100
fn clone_dyn(&self) -> Box<dyn WorkspaceData>;

0 commit comments

Comments
 (0)