From 5e81d85d7e8eeca1b6c86ea028353d7c55361961 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 14 Jun 2025 20:33:22 -1030 Subject: add note about current_thread to azalea readme --- azalea-client/src/client.rs | 2 +- azalea-client/src/plugins/interact.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index d9fec523..c9cc5259 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -153,7 +153,7 @@ impl Client { /// ```rust,no_run /// use azalea_client::{Account, Client}; /// - /// #[tokio::main] + /// #[tokio::main(flavor = "current_thread")] /// async fn main() -> Result<(), Box> { /// let account = Account::offline("bot"); /// let (client, rx) = Client::join(account, "localhost").await?; diff --git a/azalea-client/src/plugins/interact.rs b/azalea-client/src/plugins/interact.rs index d91597d6..da1fa78e 100644 --- a/azalea-client/src/plugins/interact.rs +++ b/azalea-client/src/plugins/interact.rs @@ -144,7 +144,7 @@ impl BlockStatePredictionHandler { .or_insert(ServerVerifiedState { seq: self.seq, block_state: old_state, - player_pos: player_pos, + player_pos, }); } -- cgit v1.2.3