aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/account.rs
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-client/src/account.rs
parent918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff)
downloadazalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz
enable str_to_string clippy lint
Diffstat (limited to 'azalea-client/src/account.rs')
-rw-r--r--azalea-client/src/account.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-client/src/account.rs b/azalea-client/src/account.rs
index faaa551a..ea49368e 100644
--- a/azalea-client/src/account.rs
+++ b/azalea-client/src/account.rs
@@ -85,11 +85,11 @@ impl Account {
/// This is useful for testing in LAN worlds.
pub fn offline(username: &str) -> Self {
Self {
- username: username.to_string(),
+ username: username.to_owned(),
access_token: None,
uuid: None,
account_opts: AccountOpts::Offline {
- username: username.to_string(),
+ username: username.to_owned(),
},
#[cfg(feature = "online-mode")]
certs: Arc::new(Mutex::new(None)),
@@ -137,7 +137,7 @@ impl Account {
access_token: Some(Arc::new(Mutex::new(auth_result.access_token))),
uuid: Some(auth_result.profile.id),
account_opts: AccountOpts::Microsoft {
- email: cache_key.to_string(),
+ email: cache_key.to_owned(),
},
// we don't do chat signing by default unless the user asks for it
certs: Arc::new(Mutex::new(None)),