aboutsummaryrefslogtreecommitdiff
path: root/src/geometry/interaction_graph.rs
diff options
context:
space:
mode:
authorEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-02-04 13:11:04 +0100
committerEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-02-04 13:11:04 +0100
commit85bc81d4fce29bf628d31cb978aa482e564aab90 (patch)
tree61cf130d7ad8d1162c9709345b0e7f794bdb1e46 /src/geometry/interaction_graph.rs
parent88cde90425364ee66b6b04f1c5e384423b96e369 (diff)
downloadrapier-85bc81d4fce29bf628d31cb978aa482e564aab90.tar.gz
rapier-85bc81d4fce29bf628d31cb978aa482e564aab90.tar.bz2
rapier-85bc81d4fce29bf628d31cb978aa482e564aab90.zip
Make clippy a bit happier
Diffstat (limited to 'src/geometry/interaction_graph.rs')
-rw-r--r--src/geometry/interaction_graph.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geometry/interaction_graph.rs b/src/geometry/interaction_graph.rs
index 657050c..e2cc218 100644
--- a/src/geometry/interaction_graph.rs
+++ b/src/geometry/interaction_graph.rs
@@ -120,9 +120,9 @@ impl<N: Copy, E> InteractionGraph<N, E> {
/// All the interaction involving the collision object with graph index `id`.
pub fn interactions_with(&self, id: ColliderGraphIndex) -> impl Iterator<Item = (N, N, &E)> {
- self.graph.edges(id).filter_map(move |e| {
+ self.graph.edges(id).map(move |e| {
let endpoints = self.graph.edge_endpoints(e.id()).unwrap();
- Some((self.graph[endpoints.0], self.graph[endpoints.1], e.weight()))
+ (self.graph[endpoints.0], self.graph[endpoints.1], e.weight())
})
}