diff --git a/crates/bevy_render/src/mesh/shape/capsule.rs b/crates/bevy_render/src/mesh/shape/capsule.rs index 8011ec9f09288..f2cbf866bb4cf 100644 --- a/crates/bevy_render/src/mesh/shape/capsule.rs +++ b/crates/bevy_render/src/mesh/shape/capsule.rs @@ -50,6 +50,7 @@ impl Default for CapsuleUvProfile { } impl From for Mesh { + #[allow(clippy::clippy::needless_range_loop)] fn from(capsule: Capsule) -> Self { // code adapted from https://behreajj.medium.com/making-a-capsule-mesh-via-script-in-five-3d-environments-c2214abf02db