From 284e30078f478f502805380eca577f27cf7587c0 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Tue, 4 Jul 2023 21:24:44 +0100 Subject: [PATCH] Fix clippy lint in purple night --- examples/the-purple-night/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/the-purple-night/src/lib.rs b/examples/the-purple-night/src/lib.rs index ea667825..754216df 100644 --- a/examples/the-purple-night/src/lib.rs +++ b/examples/the-purple-night/src/lib.rs @@ -1002,7 +1002,7 @@ impl SlimeData { entity.sprite.set_sprite(sprite); entity.velocity.x = match frame { - 2 | 3 | 4 => (Number::new(1) / 5) * Number::new(*direction as i32), + 2..=4 => (Number::new(1) / 5) * Number::new(*direction as i32), _ => 0.into(), };