Appease Clippy.

This commit is contained in:
Nolan Darilek 2022-05-07 04:53:21 -05:00
parent 623b731765
commit f3d03d531a

View File

@ -139,13 +139,9 @@ fn calculate_path<D: 'static + Clone + Default + Send + Sync>(
let map_clone = map.clone();
let handle_clone = *handle;
let mut collider_set = rapier_context.colliders.clone();
let obstructions = obstructions
.iter()
.map(|v| v.0)
.collect::<Vec<ColliderHandle>>();
let mut to_remove = vec![];
for handle in collider_set.iter() {
if !obstructions.contains(&handle.0) {
if !obstructions.iter().map(|v| v.0).any(|x| x == handle.0) {
to_remove.push(handle.0);
}
}