Appease Clippy.
This commit is contained in:
parent
623b731765
commit
f3d03d531a
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user