mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-19 03:41:05 +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
|
|
@ -26,11 +26,11 @@ pub struct Player {
|
|||
}
|
||||
|
||||
impl QuakePlayerType for Player {
|
||||
fn version(response: &Response<Self>) -> super::VersionedResponse { super::VersionedResponse::One(response) }
|
||||
fn version(response: &Response<Self>) -> super::VersionedResponse<'_> { super::VersionedResponse::One(response) }
|
||||
}
|
||||
|
||||
impl CommonPlayer for Player {
|
||||
fn as_original(&self) -> GenericPlayer { GenericPlayer::QuakeOne(self) }
|
||||
fn as_original(&self) -> GenericPlayer<'_> { GenericPlayer::QuakeOne(self) }
|
||||
|
||||
fn name(&self) -> &str { &self.name }
|
||||
fn score(&self) -> Option<i32> { Some(self.score.into()) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue