diff options
Diffstat (limited to 'azalea-auth/src')
| -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>() |
