From 85bc81d4fce29bf628d31cb978aa482e564aab90 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 4 Feb 2021 13:11:04 +0100 Subject: Make clippy a bit happier --- src/geometry/interaction_graph.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/geometry/interaction_graph.rs') 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 InteractionGraph { /// All the interaction involving the collision object with graph index `id`. pub fn interactions_with(&self, id: ColliderGraphIndex) -> impl Iterator { - 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()) }) } -- cgit