Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-12-03 22:41:44 +01:00
parent bfd1c4db30
commit 15b9177ea1
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ impl GameRules {
/// Check out whether these game rules are valid or not /// Check out whether these game rules are valid or not
pub fn is_valid(&self) -> bool { pub fn is_valid(&self) -> bool {
return self.get_errors().is_empty(); self.get_errors().is_empty()
} }
} }

View File

@ -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) { fn render(mut self, area: Rect, buf: &mut Buffer) {
let alphabet = PlayConfiguration::default().ordinate_alphabet; let alphabet = PlayConfiguration::default().ordinate_alphabet;