diff options
| author | mat <git@matdoes.dev> | 2025-08-12 16:02:42 -0630 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-12 16:02:42 -0630 |
| commit | f01579f70b4acc045559c1aca82d8d39a1f79f12 (patch) | |
| tree | 327e52737e4c7254b971bfb1d03db64bebdd120a /azalea-client/src/plugins/chat | |
| parent | 7f4e3c583dd669561e8502822952fc9afe26e005 (diff) | |
| download | azalea-drasl-f01579f70b4acc045559c1aca82d8d39a1f79f12.tar.xz | |
Client::chat now takes Into<String> and doc fixes
Diffstat (limited to 'azalea-client/src/plugins/chat')
| -rw-r--r-- | azalea-client/src/plugins/chat/mod.rs | 4 |
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 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<String>) { self.ecs.lock().send_event(SendChatEvent { entity: self.entity, - content: content.to_string(), + content: content.into(), }); } } |
