From 996497259e6db8ef6a4f6427d9434e19870d2ee0 Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Thu, 9 Jan 2025 19:51:06 +0100 Subject: [PATCH] fix rust 1.84 clippy warns --- pumpkin/src/command/mod.rs | 2 +- pumpkin/src/world/scoreboard.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pumpkin/src/command/mod.rs b/pumpkin/src/command/mod.rs index 31349211..a12c341b 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 9502cc8a..2c3c7717 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, {}",