From 153b5b45e42a031e9ee7dd2764840b07ce1cb47b Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 30 Apr 2022 02:10:21 -0500 Subject: misc fixes --- azalea-client/src/connect.rs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'azalea-client/src') 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::join(&self, address).await + Client::join(self, address).await } } -- cgit v1.2.3