diff options
| author | mat <git@matdoes.dev> | 2025-12-11 23:21:42 -1030 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-11 23:21:42 -1030 |
| commit | ca70e5e321a3c174c53d0650feed84db471ac30d (patch) | |
| tree | 43042fa40c2f3d7f30ea56e1ee84c59dcb13be66 /azalea-client/src/plugins | |
| parent | 918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff) | |
| download | azalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz | |
enable str_to_string clippy lint
Diffstat (limited to 'azalea-client/src/plugins')
| -rw-r--r-- | azalea-client/src/plugins/chat/mod.rs | 4 | ||||
| -rw-r--r-- | azalea-client/src/plugins/disconnect.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/plugins/task_pool.rs | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/azalea-client/src/plugins/chat/mod.rs b/azalea-client/src/plugins/chat/mod.rs index e0a41d49..7fd14e26 100644 --- a/azalea-client/src/plugins/chat/mod.rs +++ b/azalea-client/src/plugins/chat/mod.rs @@ -198,7 +198,7 @@ impl Client { pub fn write_chat_packet(&self, message: &str) { self.ecs.lock().write_message(SendChatKindEvent { entity: self.entity, - content: message.to_string(), + content: message.to_owned(), kind: ChatKind::Message, }); } @@ -211,7 +211,7 @@ impl Client { pub fn write_command_packet(&self, command: &str) { self.ecs.lock().write_message(SendChatKindEvent { entity: self.entity, - content: command.to_string(), + content: command.to_owned(), kind: ChatKind::Command, }); } diff --git a/azalea-client/src/plugins/disconnect.rs b/azalea-client/src/plugins/disconnect.rs index 08fe3807..95d1b5ac 100644 --- a/azalea-client/src/plugins/disconnect.rs +++ b/azalea-client/src/plugins/disconnect.rs @@ -94,7 +94,7 @@ pub fn remove_components_from_disconnected_players( if let Some(reason) = reason { format!(": {reason}") } else { - "".to_string() + "".to_owned() } ); commands diff --git a/azalea-client/src/plugins/task_pool.rs b/azalea-client/src/plugins/task_pool.rs index 5e9031d7..3ee7bf03 100644 --- a/azalea-client/src/plugins/task_pool.rs +++ b/azalea-client/src/plugins/task_pool.rs @@ -105,7 +105,7 @@ impl TaskPoolOptions { IoTaskPool::get_or_init(|| { TaskPoolBuilder::default() .num_threads(io_threads) - .thread_name("IO Task Pool".to_string()) + .thread_name("IO Task Pool".to_owned()) .build() }); } @@ -121,7 +121,7 @@ impl TaskPoolOptions { AsyncComputeTaskPool::get_or_init(|| { TaskPoolBuilder::default() .num_threads(async_compute_threads) - .thread_name("Async Compute Task Pool".to_string()) + .thread_name("Async Compute Task Pool".to_owned()) .build() }); } @@ -136,7 +136,7 @@ impl TaskPoolOptions { ComputeTaskPool::get_or_init(|| { TaskPoolBuilder::default() .num_threads(compute_threads) - .thread_name("Compute Task Pool".to_string()) + .thread_name("Compute Task Pool".to_owned()) .build() }); } |
