Skip to content

Commit

Permalink
fix warning correctly (swap_remove)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Sep 23, 2024
1 parent 38f69ba commit cac67b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ impl BroadPhaseMultiSap {
*/
for removed in removed_colliders {
#[cfg(feature = "enhanced-determinism")]
let proxy_id = self.colliders_proxy_ids.shift_remove(removed);
let proxy_id = self.colliders_proxy_ids.swap_remove(removed);
#[cfg(not(feature = "enhanced-determinism"))]
let proxy_id = self.colliders_proxy_ids.remove(removed);

Expand Down
2 changes: 1 addition & 1 deletion src/geometry/broad_phase_multi_sap/sap_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl SAPLayer {
// Check if we can actually delete this region.
if !region.contains_subproper_proxies() {
#[cfg(feature = "enhanced-determinism")]
let region_id = region_id.shift_remove();
let region_id = region_id.swap_remove();
#[cfg(not(feature = "enhanced-determinism"))]
let region_id = region_id.remove();

Expand Down

0 comments on commit cac67b3

Please sign in to comment.