From 15b9177ea1d606c8781152bcdf74e98b42e63f3a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 3 Dec 2024 22:41:44 +0100 Subject: [PATCH] Fix cargo clippy issue --- rust/sea_battle_backend/src/data/game_rules.rs | 2 +- rust/sea_battle_cli_player/src/ui_widgets/game_map_widget.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/sea_battle_backend/src/data/game_rules.rs b/rust/sea_battle_backend/src/data/game_rules.rs index c90d6be..9a6e0ef 100644 --- a/rust/sea_battle_backend/src/data/game_rules.rs +++ b/rust/sea_battle_backend/src/data/game_rules.rs @@ -144,7 +144,7 @@ impl GameRules { /// Check out whether these game rules are valid or not pub fn is_valid(&self) -> bool { - return self.get_errors().is_empty(); + self.get_errors().is_empty() } } diff --git a/rust/sea_battle_cli_player/src/ui_widgets/game_map_widget.rs b/rust/sea_battle_cli_player/src/ui_widgets/game_map_widget.rs index 4f680f2..e605606 100644 --- a/rust/sea_battle_cli_player/src/ui_widgets/game_map_widget.rs +++ b/rust/sea_battle_cli_player/src/ui_widgets/game_map_widget.rs @@ -98,7 +98,7 @@ impl<'a> GameMapWidget<'a> { } } -impl<'a> Widget for GameMapWidget<'a> { +impl Widget for GameMapWidget<'_> { fn render(mut self, area: Rect, buf: &mut Buffer) { let alphabet = PlayConfiguration::default().ordinate_alphabet;