summaryrefslogtreecommitdiffstats
path: root/src/gates.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2023-07-21 22:42:51 -0700
committerRose Hogenson <rosehogenson@posteo.net>2023-07-21 22:42:51 -0700
commit1ecadfb0adf839c719ba50914c7336488ca55a47 (patch)
tree5d7419007e983c2ba684b89f402615205345fef6 /src/gates.rs
parentd075c455b1ed5fe89fb949ca1f019de97ffb832a (diff)
downloadstallman-shooter-1ecadfb0adf839c719ba50914c7336488ca55a47.tar.zst
Fix clippy warnings.
Diffstat (limited to 'src/gates.rs')
-rw-r--r--src/gates.rs8
1 files changed, 4 insertions, 4 deletions
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
}
}