aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline/query_pipeline
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2024-12-05 15:55:12 +0100
committerGitHub <noreply@github.com>2024-12-05 15:55:12 +0100
commit93bd37d814d0156126bdb48697396ff7ab4b6157 (patch)
tree217de5302018b913a065c5164a23b5f1a15ef1cf /src/pipeline/query_pipeline
parentbce786831c56766fbb7971828928d973dae8ed3e (diff)
downloadrapier-93bd37d814d0156126bdb48697396ff7ab4b6157.tar.gz
rapier-93bd37d814d0156126bdb48697396ff7ab4b6157.tar.bz2
rapier-93bd37d814d0156126bdb48697396ff7ab4b6157.zip
fix clippy needless lifetimes (#769)
+ ignore them for bevy where we often want explicitness
Diffstat (limited to 'src/pipeline/query_pipeline')
-rw-r--r--src/pipeline/query_pipeline/generators.rs6
-rw-r--r--src/pipeline/query_pipeline/mod.rs8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/pipeline/query_pipeline/generators.rs b/src/pipeline/query_pipeline/generators.rs
index 5e5146b..4a08bbf 100644
--- a/src/pipeline/query_pipeline/generators.rs
+++ b/src/pipeline/query_pipeline/generators.rs
@@ -30,7 +30,7 @@ pub struct SweptAabbWithPredictedPosition<'a> {
/// You probably want to set it to [`IntegrationParameters::dt`].
pub dt: Real,
}
-impl<'a> QbvhDataGenerator<ColliderHandle> for SweptAabbWithPredictedPosition<'a> {
+impl QbvhDataGenerator<ColliderHandle> for SweptAabbWithPredictedPosition<'_> {
fn size_hint(&self) -> usize {
self.colliders.len()
}
@@ -68,7 +68,7 @@ pub struct SweptAabbWithNextPosition<'a> {
pub colliders: &'a ColliderSet,
}
-impl<'a> QbvhDataGenerator<ColliderHandle> for SweptAabbWithNextPosition<'a> {
+impl QbvhDataGenerator<ColliderHandle> for SweptAabbWithNextPosition<'_> {
fn size_hint(&self) -> usize {
self.colliders.len()
}
@@ -96,7 +96,7 @@ pub struct CurrentAabb<'a> {
pub colliders: &'a ColliderSet,
}
-impl<'a> QbvhDataGenerator<ColliderHandle> for CurrentAabb<'a> {
+impl QbvhDataGenerator<ColliderHandle> for CurrentAabb<'_> {
fn size_hint(&self) -> usize {
self.colliders.len()
}
diff --git a/src/pipeline/query_pipeline/mod.rs b/src/pipeline/query_pipeline/mod.rs
index 6d41f4f..06a5e2f 100644
--- a/src/pipeline/query_pipeline/mod.rs
+++ b/src/pipeline/query_pipeline/mod.rs
@@ -119,7 +119,7 @@ pub struct QueryFilter<'a> {
pub predicate: Option<&'a dyn Fn(ColliderHandle, &Collider) -> bool>,
}
-impl<'a> QueryFilter<'a> {
+impl QueryFilter<'_> {
/// Applies the filters described by `self` to a collider to determine if it has to be
/// included in a scene query (`true`) or not (`false`).
#[inline]
@@ -136,7 +136,7 @@ impl<'a> QueryFilter<'a> {
}
}
-impl<'a> From<QueryFilterFlags> for QueryFilter<'a> {
+impl From<QueryFilterFlags> for QueryFilter<'_> {
fn from(flags: QueryFilterFlags) -> Self {
Self {
flags,
@@ -145,7 +145,7 @@ impl<'a> From<QueryFilterFlags> for QueryFilter<'a> {
}
}
-impl<'a> From<InteractionGroups> for QueryFilter<'a> {
+impl From<InteractionGroups> for QueryFilter<'_> {
fn from(groups: InteractionGroups) -> Self {
Self {
groups: Some(groups),
@@ -229,7 +229,7 @@ impl<'a> QueryFilter<'a> {
}
}
-impl<'a> TypedSimdCompositeShape for QueryPipelineAsCompositeShape<'a> {
+impl TypedSimdCompositeShape for QueryPipelineAsCompositeShape<'_> {
type PartShape = dyn Shape;
type PartNormalConstraints = dyn NormalConstraints;
type PartId = ColliderHandle;