From f01579f70b4acc045559c1aca82d8d39a1f79f12 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 12 Aug 2025 16:02:42 -0630 Subject: Client::chat now takes Into and doc fixes --- azalea-client/src/plugins/chat/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins') diff --git a/azalea-client/src/plugins/chat/mod.rs b/azalea-client/src/plugins/chat/mod.rs index 856184cc..daeacc2e 100644 --- a/azalea-client/src/plugins/chat/mod.rs +++ b/azalea-client/src/plugins/chat/mod.rs @@ -192,10 +192,10 @@ impl Client { /// # Ok(()) /// # } /// ``` - pub fn chat(&self, content: &str) { + pub fn chat(&self, content: impl Into) { self.ecs.lock().send_event(SendChatEvent { entity: self.entity, - content: content.to_string(), + content: content.into(), }); } } -- cgit v1.2.3