fix rust 1.84 clippy warns
This commit is contained in:
parent
fcc3aaefe4
commit
996497259e
@ -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()),
|
||||
|
||||
@ -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, {}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user