diff options
Diffstat (limited to 'azalea-chat/src/text_component.rs')
| -rw-r--r-- | azalea-chat/src/text_component.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/azalea-chat/src/text_component.rs b/azalea-chat/src/text_component.rs index 41f03965..78270bd8 100644 --- a/azalea-chat/src/text_component.rs +++ b/azalea-chat/src/text_component.rs @@ -164,6 +164,12 @@ impl Display for TextComponent { } } +impl From<TextComponent> for FormattedText { + fn from(c: TextComponent) -> Self { + FormattedText::Text(c) + } +} + #[cfg(test)] mod tests { use super::*; |
