Skip to content

Commit

Permalink
fix rust 1.84 clippy warns
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Jan 9, 2025
1 parent fcc3aae commit 9964972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pumpkin/src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
4 changes: 2 additions & 2 deletions pumpkin/src/world/scoreboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand All @@ -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, {}",
Expand Down

0 comments on commit 9964972

Please sign in to comment.