Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
supercoolspy committed Apr 14, 2024
1 parent ed12822 commit 3ce489b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const XBOX_XSTS_AUTHORIZE: &str = "https://xsts.auth.xboxlive.com/xsts/authorize

/// Represents a Minecraft access token
#[nutype(
validate(not_empty),
derive(Clone, PartialEq, Eq, Hash, Deserialize, Serialize, AsRef, Into)
validate(not_empty),
derive(Clone, PartialEq, Eq, Hash, Deserialize, Serialize, AsRef, Into)
)]
pub struct MinecraftAccessToken(String);

Expand Down Expand Up @@ -225,9 +225,7 @@ impl MinecraftAuthorizationFlow {
match xbox_security_token_err_resp.x_err {
2148916238 => Err(MinecraftAuthorizationError::AddToFamily),
2148916233 => Err(MinecraftAuthorizationError::NoXbox),
_ => {
Err(MinecraftAuthorizationError::MissingClaims)
},
_ => Err(MinecraftAuthorizationError::MissingClaims),
}
} else {
response.error_for_status_ref()?;
Expand Down

0 comments on commit 3ce489b

Please sign in to comment.