diff options
| author | mat <github@matdoes.dev> | 2022-04-30 02:10:21 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 02:10:21 -0500 |
| commit | 153b5b45e42a031e9ee7dd2764840b07ce1cb47b (patch) | |
| tree | b8673fbad5ceb31d7bfa29a364415ca8804e2a91 /azalea-client | |
| parent | c37fcfe4da7a55208bf8241c7a776905513d5e0e (diff) | |
| download | azalea-drasl-153b5b45e42a031e9ee7dd2764840b07ce1cb47b.tar.xz | |
misc fixes
Diffstat (limited to 'azalea-client')
| -rwxr-xr-x | azalea-client/src/connect.rs | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 2aa25f2d..b0d7dffc 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -11,14 +11,7 @@ use azalea_protocol::{ }, resolver, ServerAddress, }; -use std::{ - borrow::BorrowMut, - cell::RefCell, - future::Future, - pin::Pin, - rc::Rc, - sync::{Arc, Weak}, -}; +use std::sync::Arc; use tokio::sync::mpsc::{self, UnboundedReceiver, UnboundedSender}; use tokio::sync::Mutex; @@ -88,8 +81,8 @@ impl Client { conn.write( ServerboundKeyPacket { - nonce: e.encrypted_nonce.into(), - shared_secret: e.encrypted_public_key.into(), + nonce: e.encrypted_nonce, + shared_secret: e.encrypted_public_key, } .get(), ) @@ -237,6 +230,6 @@ impl Account { } pub async fn join(&self, address: &ServerAddress) -> Result<Client, String> { - Client::join(&self, address).await + Client::join(self, address).await } } |
