diff options
| author | mat <git@matdoes.dev> | 2023-06-14 23:43:54 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-06-14 23:43:54 -0500 |
| commit | dbfbffac140e722d57a1e18bcaa27b25f839f950 (patch) | |
| tree | 6fd0af00c7e024c6d161ab5624237d7cd44d908f /azalea-client | |
| parent | a514b2c9e57c39ee0a183ce2d539d2cdfc8d2e05 (diff) | |
| download | azalea-drasl-dbfbffac140e722d57a1e18bcaa27b25f839f950.tar.xz | |
Vec3::distance_to and clippy
Diffstat (limited to 'azalea-client')
| -rwxr-xr-x | azalea-client/src/account.rs | 15 | ||||
| -rw-r--r-- | azalea-client/src/interact.rs | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs index 12a16493..5c6056c1 100755 --- a/azalea-client/src/account.rs +++ b/azalea-client/src/account.rs @@ -145,14 +145,13 @@ impl Account { /// Request the certificates used for chat signing and set it in /// [`Self::certs`]. pub async fn request_certs(&mut self) -> Result<(), RequestCertError> { - let certs = azalea_auth::certs::fetch_certificates( - &self - .access_token - .as_ref() - .ok_or(RequestCertError::NoAccessToken)? - .lock(), - ) - .await?; + let access_token = self + .access_token + .as_ref() + .ok_or(RequestCertError::NoAccessToken)? + .lock() + .clone(); + let certs = azalea_auth::certs::fetch_certificates(&access_token).await?; self.certs = Some(certs); Ok(()) diff --git a/azalea-client/src/interact.rs b/azalea-client/src/interact.rs index a6b8e061..c389f2f3 100644 --- a/azalea-client/src/interact.rs +++ b/azalea-client/src/interact.rs @@ -253,7 +253,7 @@ pub fn check_block_can_be_broken_by_item_in_adventure_mode( return false; }; - return false; + false // for block_predicate in can_destroy { // // TODO |
