diff options
| author | mat <github@matdoes.dev> | 2022-06-25 16:40:12 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-25 16:40:12 -0500 |
| commit | 978880b756aa052226f77c21e8e9de9b40070152 (patch) | |
| tree | 0f66b76beb4b8eac36a4c9c84cb3d5d8ed8bac35 /azalea-client/src | |
| parent | 460bdfb8bbaf0969df6451a00fc3de214728aec0 (diff) | |
| download | azalea-drasl-978880b756aa052226f77c21e8e9de9b40070152.tar.xz | |
Fix warnings
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/movement.rs | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index 11b098ca..9b3f7cdf 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -163,8 +163,6 @@ impl Client { // just start up the game loop and we're ready! - let game_loop_state = client.clone(); - // if you get an error right here that means you're doing something with locks wrong // read the error to see where the issue is // you might be able to just drop the lock or put it in its own scope to fix diff --git a/azalea-client/src/movement.rs b/azalea-client/src/movement.rs index 7ab4ddc2..5247e0f0 100644 --- a/azalea-client/src/movement.rs +++ b/azalea-client/src/movement.rs @@ -8,7 +8,7 @@ impl Client { let mut dimension_lock = self.dimension.lock().unwrap(); let dimension = dimension_lock.as_mut().unwrap(); - let mut player_lock = self.player.lock().unwrap(); + let player_lock = self.player.lock().unwrap(); let player_id = if let Some(player_lock) = player_lock.entity(dimension) { player_lock.id @@ -35,7 +35,6 @@ impl Client { .get(), ) .await; - println!("obtained lock on conn"); Ok(()) } |
