diff options
Diffstat (limited to 'azalea-auth/src')
| -rw-r--r-- | azalea-auth/src/auth.rs | 4 | ||||
| -rw-r--r-- | azalea-auth/src/game_profile.rs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs index a4176d6c..779910d3 100644 --- a/azalea-auth/src/auth.rs +++ b/azalea-auth/src/auth.rs @@ -142,7 +142,7 @@ pub async fn auth(cache_key: &str, opts: AuthOpts<'_>) -> Result<AuthResult, Aut &cache_file, cache_key, CachedAccount { - cache_key: cache_key.to_string(), + cache_key: cache_key.to_owned(), mca: res.mca, msa, xbl: res.xbl, @@ -527,7 +527,7 @@ async fn obtain_xsts_for_minecraft( .json(&json!({ "Properties": { "SandboxId": "RETAIL", - "UserTokens": [xbl_auth_token.to_string()] + "UserTokens": [xbl_auth_token.to_owned()] }, "RelyingParty": "rp://api.minecraftservices.com/", "TokenType": "JWT" diff --git a/azalea-auth/src/game_profile.rs b/azalea-auth/src/game_profile.rs index 4f5bccfd..9038ea61 100644 --- a/azalea-auth/src/game_profile.rs +++ b/azalea-auth/src/game_profile.rs @@ -202,14 +202,14 @@ mod tests { profile, GameProfile { uuid: Uuid::parse_str("f1a2b3c4-d5e6-f7a8-b9c0-d1e2f3a4b5c6").unwrap(), - name: "Notch".to_string(), + name: "Notch".to_owned(), properties: { let mut map = IndexMap::new(); map.insert( - "qwer".to_string(), + "qwer".to_owned(), ProfilePropertyValue { - value: "asdf".to_string(), - signature: Some("zxcv".to_string()), + value: "asdf".to_owned(), + signature: Some("zxcv".to_owned()), }, ); GameProfileProperties { map }.into() |
