From 614c0df0537567c75f781df7affc091a4a466226 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Tue, 15 Nov 2022 20:38:32 +0000 Subject: clippy --- bot/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bot') diff --git a/bot/src/main.rs b/bot/src/main.rs index f1398062..ce627651 100755 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -58,13 +58,12 @@ async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> Event::Chat(m) => { println!("{}", m.message().to_ansi(None)); if m.message().to_string() == " goto" { - let target_pos_vec3 = bot + let target_pos_vec3 = *(bot .dimension .read() .entity_by_uuid(&uuid::uuid!("6536bfed869548fd83a1ecd24cf2a0fd")) .unwrap() - .pos() - .clone(); + .pos()); let target_pos: BlockPos = (&target_pos_vec3).into(); // bot.look_at(&target_pos_vec3); bot.goto(BlockPosGoal::from(target_pos)); -- cgit v1.2.3