aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth/src/auth.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-29 14:33:53 -0500
committermat <github@matdoes.dev>2022-10-29 14:33:53 -0500
commit7d140e5f0c70d45debc2fa3bc182e519607f3de8 (patch)
treea703e91b005660b3e271792bf9106153a109cf60 /azalea-auth/src/auth.rs
parent7c71bdf79a851d9646fe60f00dd70429aa09263b (diff)
downloadazalea-drasl-7d140e5f0c70d45debc2fa3bc182e519607f3de8.tar.xz
ClientboundContainerClosePacket
Diffstat (limited to 'azalea-auth/src/auth.rs')
-rw-r--r--azalea-auth/src/auth.rs10
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>()