diff options
| author | Sébastien Crozet <developer@crozet.re> | 2021-02-04 18:20:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-04 18:20:27 +0100 |
| commit | a272f4ce9eb812bd14114fe95ab614bc8dddfce5 (patch) | |
| tree | 216e07441b294f4424c49d92d1e74e1d94772cbb /src/geometry/interaction_graph.rs | |
| parent | a0230408252c9e3f06d4cee4c45831922df0143e (diff) | |
| parent | 85bc81d4fce29bf628d31cb978aa482e564aab90 (diff) | |
| download | rapier-a272f4ce9eb812bd14114fe95ab614bc8dddfce5.tar.gz rapier-a272f4ce9eb812bd14114fe95ab614bc8dddfce5.tar.bz2 rapier-a272f4ce9eb812bd14114fe95ab614bc8dddfce5.zip | |
Merge pull request #104 from EmbarkStudios/clippy-fixes
Make clippy a bit happier
Diffstat (limited to 'src/geometry/interaction_graph.rs')
| -rw-r--r-- | src/geometry/interaction_graph.rs | 4 |
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()) }) } |
