aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-12-03 20:31:36 -0600
committermat <git@matdoes.dev>2023-12-03 20:31:36 -0600
commit4355e7f74b2bea8a87ef59b8de8123270c53ca09 (patch)
tree0988d2e92929bdd8290005f13e9dc4ccc4450fbe /azalea-auth
parent5910f9bdcf64771da9963e9756212481906fbeb9 (diff)
downloadazalea-drasl-4355e7f74b2bea8a87ef59b8de8123270c53ca09.tar.xz
clippy
Diffstat (limited to 'azalea-auth')
-rwxr-xr-xazalea-auth/src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs
index 49f0c34a..68b03306 100755
--- a/azalea-auth/src/auth.rs
+++ b/azalea-auth/src/auth.rs
@@ -438,7 +438,7 @@ async fn auth_with_xbox_live(
Ok(ExpiringValue {
data: XboxLiveAuth {
token: res.token,
- user_hash: res.display_claims["xui"].get(0).unwrap()["uhs"].clone(),
+ user_hash: res.display_claims["xui"].first().unwrap()["uhs"].clone(),
},
expires_at,
})