aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-15 16:53:34 -0500
committermat <github@matdoes.dev>2022-10-15 16:53:34 -0500
commit98224cf91337aa312b72de87ea4c1b22794619b2 (patch)
treea00f3468543d292c1b6f4eb212fcc3e3b3e13e2e /azalea-physics/src
parenta348f67b9646cf51bedf413bf79271391bdb23b2 (diff)
downloadazalea-drasl-98224cf91337aa312b72de87ea4c1b22794619b2.tar.xz
fix clippy warnings
Diffstat (limited to 'azalea-physics/src')
-rw-r--r--azalea-physics/src/collision/discrete_voxel_shape.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/azalea-physics/src/collision/discrete_voxel_shape.rs b/azalea-physics/src/collision/discrete_voxel_shape.rs
index 2be1e9b7..51d45316 100644
--- a/azalea-physics/src/collision/discrete_voxel_shape.rs
+++ b/azalea-physics/src/collision/discrete_voxel_shape.rs
@@ -338,8 +338,7 @@ impl From<&DiscreteVoxelShape> for BitSetDiscreteVoxelShape {
for y in 0..y_size {
for z in 0..z_size {
if shape.is_full(x, y, z) {
- storage
- .set(Self::get_index_from_size(x, y, z, y_size, z_size) as usize);
+ storage.set(Self::get_index_from_size(x, y, z, y_size, z_size));
}
}
}