From ca70e5e321a3c174c53d0650feed84db471ac30d Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 11 Dec 2025 23:21:42 -1030 Subject: enable str_to_string clippy lint --- azalea-client/src/plugins/chat/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins/chat') 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, }); } -- cgit v1.2.3