From 1ecadfb0adf839c719ba50914c7336488ca55a47 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Fri, 21 Jul 2023 22:42:51 -0700 Subject: Fix clippy warnings. --- src/gates.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gates.rs') diff --git a/src/gates.rs b/src/gates.rs index 1e3630f..7f6bd9f 100644 --- a/src/gates.rs +++ b/src/gates.rs @@ -26,8 +26,8 @@ impl GatesBullet { GatesBullet { real_x: x as f64, real_y: y as f64, - d_x: d_x, - d_y: d_y, + d_x, + d_y, } } } @@ -39,7 +39,7 @@ impl state::Positioned for GatesBullet { fn y(&self) -> i32 { self.real_y.round() as i32 } - fn radius() -> u32 { + fn radius() -> i32 { 10 } } @@ -51,7 +51,7 @@ impl state::Positioned for Gates { fn y(&self) -> i32 { self.y.round() as i32 } - fn radius() -> u32 { + fn radius() -> i32 { 30 } } -- cgit v1.3.1