aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/testbot/killaura.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-07 11:27:58 +0800
committermat <git@matdoes.dev>2025-05-07 11:27:58 +0800
commitaa0256da102103eedc9897458dd81516962a80a3 (patch)
tree9d01f879a7c75750acd8de0c308247c12bbeea9d /azalea/examples/testbot/killaura.rs
parente9452032bfc95cb7ad4a8798b13648e164536cf1 (diff)
downloadazalea-drasl-aa0256da102103eedc9897458dd81516962a80a3.tar.xz
upgrade rust version and fix clippy warnings
Diffstat (limited to 'azalea/examples/testbot/killaura.rs')
-rw-r--r--azalea/examples/testbot/killaura.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/testbot/killaura.rs b/azalea/examples/testbot/killaura.rs
index b47ac0df..5458ea4e 100644
--- a/azalea/examples/testbot/killaura.rs
+++ b/azalea/examples/testbot/killaura.rs
@@ -39,8 +39,8 @@ pub fn tick(bot: Client, state: State) -> anyhow::Result<()> {
}
}
if let Some(nearest_entity) = nearest_entity {
- println!("attacking {:?}", nearest_entity);
- println!("distance {:?}", nearest_distance);
+ println!("attacking {nearest_entity:?}");
+ println!("distance {nearest_distance:?}");
bot.attack(nearest_entity);
}