aboutsummaryrefslogtreecommitdiff
path: root/src/data/graph.rs
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/data/graph.rs
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/data/graph.rs')
-rw-r--r--src/data/graph.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/data/graph.rs b/src/data/graph.rs
index 8f38dae..4620b88 100644
--- a/src/data/graph.rs
+++ b/src/data/graph.rs
@@ -531,7 +531,7 @@ fn edges_walker_mut<E>(
EdgesWalkerMut { edges, next, dir }
}
-impl<'a, E> EdgesWalkerMut<'a, E> {
+impl<E> EdgesWalkerMut<'_, E> {
fn next_edge(&mut self) -> Option<&mut Edge<E>> {
self.next().map(|t| t.1)
}
@@ -630,7 +630,7 @@ impl<'a, E> Iterator for Edges<'a, E> {
// x
// }
-impl<'a, E> Clone for Edges<'a, E> {
+impl<E> Clone for Edges<'_, E> {
fn clone(&self) -> Self {
Edges {
skip_start: self.skip_start,
@@ -699,15 +699,15 @@ impl<'a, E: 'a> EdgeReference<'a, E> {
}
}
-impl<'a, E> Clone for EdgeReference<'a, E> {
+impl<E> Clone for EdgeReference<'_, E> {
fn clone(&self) -> Self {
*self
}
}
-impl<'a, E> Copy for EdgeReference<'a, E> {}
+impl<E> Copy for EdgeReference<'_, E> {}
-impl<'a, E> PartialEq for EdgeReference<'a, E>
+impl<E> PartialEq for EdgeReference<'_, E>
where
E: PartialEq,
{