diff options
| author | mat <github@matdoes.dev> | 2022-10-29 14:33:53 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-10-29 14:33:53 -0500 |
| commit | 7d140e5f0c70d45debc2fa3bc182e519607f3de8 (patch) | |
| tree | a703e91b005660b3e271792bf9106153a109cf60 /azalea-auth | |
| parent | 7c71bdf79a851d9646fe60f00dd70429aa09263b (diff) | |
| download | azalea-drasl-7d140e5f0c70d45debc2fa3bc182e519607f3de8.tar.xz | |
ClientboundContainerClosePacket
Diffstat (limited to 'azalea-auth')
| -rw-r--r-- | azalea-auth/src/auth.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs index 0b043baf..b7f834d4 100644 --- a/azalea-auth/src/auth.rs +++ b/azalea-auth/src/auth.rs @@ -444,10 +444,7 @@ async fn check_ownership( ) -> Result<bool, CheckOwnershipError> { let res = client .get("https://api.minecraftservices.com/entitlements/mcstore") - .header( - "Authorization", - format!("Bearer {minecraft_access_token}"), - ) + .header("Authorization", format!("Bearer {minecraft_access_token}")) .send() .await? .json::<GameOwnershipResponse>() @@ -472,10 +469,7 @@ async fn get_profile( ) -> Result<ProfileResponse, GetProfileError> { let res = client .get("https://api.minecraftservices.com/minecraft/profile") - .header( - "Authorization", - format!("Bearer {minecraft_access_token}"), - ) + .header("Authorization", format!("Bearer {minecraft_access_token}")) .send() .await? .json::<ProfileResponse>() |
