fix(clippy): add lifetime annotations to various methods and structs (mismatched_lifetime_syntaxes)

This commit is contained in:
Cain 2026-02-22 17:47:05 +00:00
parent a5f15a040a
commit 4ea333f16b
17 changed files with 33 additions and 33 deletions

View file

@ -64,7 +64,7 @@ impl GameMode {
}
impl CommonResponse for ServerData {
fn as_original(&self) -> GenericResponse { GenericResponse::Mindustry(self) }
fn as_original(&self) -> GenericResponse<'_> { GenericResponse::Mindustry(self) }
fn players_online(&self) -> u32 { self.players.try_into().unwrap_or(0) }
fn players_maximum(&self) -> u32 { self.player_limit.try_into().unwrap_or(0) }