diff --git a/pumpkin/src/command/mod.rs b/pumpkin/src/command/mod.rs index 313492111..a12c341b7 100644 --- a/pumpkin/src/command/mod.rs +++ b/pumpkin/src/command/mod.rs @@ -46,7 +46,7 @@ impl fmt::Display for CommandSender<'_> { } } -impl<'a> CommandSender<'a> { +impl CommandSender<'_> { pub async fn send_message(&self, text: TextComponent) { match self { CommandSender::Console => log::info!("{}", text.to_pretty_console()), diff --git a/pumpkin/src/world/scoreboard.rs b/pumpkin/src/world/scoreboard.rs index 9502cc8a6..2c3c77171 100644 --- a/pumpkin/src/world/scoreboard.rs +++ b/pumpkin/src/world/scoreboard.rs @@ -23,7 +23,7 @@ impl Scoreboard { } } - pub async fn add_objective<'a>(&mut self, world: &World, objective: ScoreboardObjective<'a>) { + pub async fn add_objective(&mut self, world: &World, objective: ScoreboardObjective<'_>) { if self.objectives.contains_key(objective.name) { // Maybe make this an error ? log::warn!( @@ -49,7 +49,7 @@ impl Scoreboard { .await; } - pub async fn update_score<'a>(&self, world: &World, score: ScoreboardScore<'a>) { + pub async fn update_score(&self, world: &World, score: ScoreboardScore<'_>) { if self.objectives.contains_key(score.objective_name) { log::warn!( "Tried to place a score into a Objective which does not exist, {}",