fix rust 1.84 clippy warns

This commit is contained in:
Alexander Medvedev 2025-01-09 19:51:06 +01:00
parent fcc3aaefe4
commit 996497259e
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ impl fmt::Display for CommandSender<'_> {
} }
} }
impl<'a> CommandSender<'a> { impl CommandSender<'_> {
pub async fn send_message(&self, text: TextComponent) { pub async fn send_message(&self, text: TextComponent) {
match self { match self {
CommandSender::Console => log::info!("{}", text.to_pretty_console()), CommandSender::Console => log::info!("{}", text.to_pretty_console()),

View File

@ -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) { if self.objectives.contains_key(objective.name) {
// Maybe make this an error ? // Maybe make this an error ?
log::warn!( log::warn!(
@ -49,7 +49,7 @@ impl Scoreboard {
.await; .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) { if self.objectives.contains_key(score.objective_name) {
log::warn!( log::warn!(
"Tried to place a score into a Objective which does not exist, {}", "Tried to place a score into a Objective which does not exist, {}",