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;