about summary refs log tree commit diff
path: root/src/game.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-08-03T17·14-0400
committerGriffin Smith <root@gws.fyi>2019-08-04T00·31-0400
commit82cefedab9e44b48f4d3cc08b0f6e002ae383c9d (patch)
treeadc553136987cdbd69caf9e1aa362d1974c57afd /src/game.rs
parent929dac06d0a2df78bbeac5a80c994a38901e5f67 (diff)
Fix a bunch more Clippy lints, but disable in Circle
The unused error is causing more trouble than it's worth at this
point
Diffstat (limited to 'src/game.rs')
-rw-r--r--src/game.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/game.rs b/src/game.rs
index add48e8bfd47..2c69061516fd 100644
--- a/src/game.rs
+++ b/src/game.rs
@@ -69,7 +69,7 @@ impl PromptResolution {
         use PromptResolution::*;
         match self {
             Cancellable(complete) => complete.cancel(),
-            Uncancellable(complete) => {}
+            Uncancellable(_complete) => {}
         }
     }
 }
@@ -200,12 +200,10 @@ impl<'a> Game<'a> {
     fn collision_at(&self, pos: Position) -> Option<Collision> {
         if !pos.within(self.viewport.inner) {
             Some(Collision::Stop)
+        } else if self.creatures_at(pos).is_empty() {
+            None
         } else {
-            if self.creatures_at(pos).is_empty() {
-                None
-            } else {
-                Some(Collision::Combat)
-            }
+            Some(Collision::Combat)
         }
     }
 
@@ -305,7 +303,7 @@ impl<'a> Game<'a> {
     }
 
     /// Step the game forward the given number of ticks
-    fn tick(&mut self, ticks: Ticks) {}
+    fn tick(&mut self, _ticks: Ticks) {}
 
     /// Get a message from the global map based on the rng in this game
     fn message<'params>(