Skip to content

Commit

Permalink
allow clippy warning
Browse files Browse the repository at this point in the history
I think the range loop is more understandable here.
  • Loading branch information
jakobhellermann committed Jan 7, 2021
1 parent d6ccbd7 commit 878445b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_render/src/mesh/shape/capsule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl Default for CapsuleUvProfile {
}

impl From<Capsule> 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

Expand Down

0 comments on commit 878445b

Please sign in to comment.