From 252958bb90751b0d278b1a478193b046edcfabe2 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 21 Oct 2023 01:34:18 -0500 Subject: async_fn_in_trait stabilized --- azalea/src/bot.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea/src/bot.rs') diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 768ae767..509d0e2d 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -21,6 +21,7 @@ use azalea_physics::PhysicsSet; use bevy_app::{FixedUpdate, Update}; use bevy_ecs::prelude::Event; use bevy_ecs::schedule::IntoSystemConfigs; +use futures_lite::Future; use log::trace; use std::f64::consts::PI; @@ -82,7 +83,7 @@ pub trait BotClientExt { /// that's necessary you'll have to do that yourself with [`look_at`]. /// /// [`look_at`]: crate::prelude::BotClientExt::look_at - async fn mine(&mut self, position: BlockPos); + fn mine(&mut self, position: BlockPos) -> impl Future + Send; } impl BotClientExt for azalea_client::Client { -- cgit v1.2.3