mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
fix(clippy): add lifetime annotations to various methods and structs (mismatched_lifetime_syntaxes)
This commit is contained in:
parent
a5f15a040a
commit
4ea333f16b
17 changed files with 33 additions and 33 deletions
|
|
@ -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) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue