From 37b9f10b3bcc74b48df2c6843a5286a7d41e2414 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 11 Dec 2022 00:15:37 -0600 Subject: make entities have a reference to WeakWorlds instead ... and other exciting bug fixes --- azalea-chat/src/component.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'azalea-chat/src') diff --git a/azalea-chat/src/component.rs b/azalea-chat/src/component.rs index ea485049..d889f3ef 100755 --- a/azalea-chat/src/component.rs +++ b/azalea-chat/src/component.rs @@ -292,6 +292,11 @@ impl From for Component { }) } } +impl From<&str> for Component { + fn from(s: &str) -> Self { + Self::from(s.to_string()) + } +} impl Display for Component { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { -- cgit v1.2.3