diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-13 15:20:03 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-03-13 15:20:03 +0100 |
commit | fd52e266c6e25999a49c36f17342977b759a2612 (patch) | |
tree | 9c727cac949c9698343d003ee87cfe73c6c6204a /planetwars-rules/src/lib.rs | |
parent | f7655005ff099e8314ecd31e95b26ad74d4efd02 (diff) | |
download | planetwars.dev-fd52e266c6e25999a49c36f17342977b759a2612.tar.xz planetwars.dev-fd52e266c6e25999a49c36f17342977b759a2612.zip |
apply clippy suggestions
Diffstat (limited to 'planetwars-rules/src/lib.rs')
-rw-r--r-- | planetwars-rules/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-rules/src/lib.rs b/planetwars-rules/src/lib.rs index 48034ee..26382f1 100644 --- a/planetwars-rules/src/lib.rs +++ b/planetwars-rules/src/lib.rs @@ -50,7 +50,7 @@ impl PlanetWars { serializer::serialize_rotated(&self.state, player_id - 1) } - pub fn state<'a>(&'a self) -> &'a PwState { + pub fn state(&self) -> &PwState { &self.state } @@ -62,7 +62,7 @@ impl PlanetWars { ) -> Result<(), CommandError> { let dispatch = self.parse_command(player_num, cmd)?; self.state.dispatch(&dispatch); - return Ok(()); + Ok(()) } /// Check the given command for validity. |