aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/chat/mod.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/plugins/chat/mod.rs
parent918214e8ba4eae65daf5d2da17aa0022f2ae5212 (diff)
downloadazalea-drasl-ca70e5e321a3c174c53d0650feed84db471ac30d.tar.xz
enable str_to_string clippy lint
Diffstat (limited to 'azalea-client/src/plugins/chat/mod.rs')
-rw-r--r--azalea-client/src/plugins/chat/mod.rs4
1 files changed, 2 insertions, 2 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,
});
}