aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-11 23:21:42 -1030
committermat <git@matdoes.dev>2025-12-11 23:21:42 -1030
commitca70e5e321a3c174c53d0650feed84db471ac30d (patch)
tree43042fa40c2f3d7f30ea56e1ee84c59dcb13be66 /azalea-auth
parent918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff)
downloadazalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz
enable str_to_string clippy lint
Diffstat (limited to 'azalea-auth')
-rw-r--r--azalea-auth/src/auth.rs4
-rw-r--r--azalea-auth/src/game_profile.rs8
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()