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/src/account.rs | |
| parent | a514b2c9e57c39ee0a183ce2d539d2cdfc8d2e05 (diff) | |
| download | azalea-drasl-dbfbffac140e722d57a1e18bcaa27b25f839f950.tar.xz | |
Vec3::distance_to and clippy
Diffstat (limited to 'azalea-client/src/account.rs')
| -rwxr-xr-x | azalea-client/src/account.rs | 15 |
1 files changed, 7 insertions, 8 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(()) |
