aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples')
-rw-r--r--azalea/examples/testbot.rs4
-rw-r--r--azalea/examples/todo/craft_dig_straight_down.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs
index 630ddf00..8e6f5b98 100644
--- a/azalea/examples/testbot.rs
+++ b/azalea/examples/testbot.rs
@@ -221,12 +221,12 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result<
};
bot.look_at(target_pos.center());
let container = bot.open_container(target_pos).await;
- println!("container: {:?}", container);
+ println!("container: {container:?}");
if let Some(container) = container {
if let Some(contents) = container.contents() {
for item in contents {
if let ItemSlot::Present(item) = item {
- println!("item: {:?}", item);
+ println!("item: {item:?}");
}
}
} else {
diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs
index 116cbcc2..6672eaa4 100644
--- a/azalea/examples/todo/craft_dig_straight_down.rs
+++ b/azalea/examples/todo/craft_dig_straight_down.rs
@@ -63,7 +63,7 @@ async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> {
.dig(azalea::entity::feet_pos(bot.entity()).down(1))
.await
{
- println!("{:?}", e);
+ println!("{e:?}");
break;
}
}