aboutsummaryrefslogtreecommitdiff
path: root/minecraft-chat/src/text_component.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-10 21:55:25 +0000
committermat <github@matdoes.dev>2021-12-10 21:55:59 +0000
commite4460661c672c5716d7145949054cf56b0f91c64 (patch)
tree974738c060e854d818ec74dc3b8dc2b2de89ea96 /minecraft-chat/src/text_component.rs
parent0dce5f56ce8c4ec0eb3ee4eb6c09b20956242dfa (diff)
downloadazalea-drasl-e4460661c672c5716d7145949054cf56b0f91c64.tar.xz
rewrite to_ansi
Diffstat (limited to 'minecraft-chat/src/text_component.rs')
-rw-r--r--minecraft-chat/src/text_component.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/minecraft-chat/src/text_component.rs b/minecraft-chat/src/text_component.rs
index bd47d671..9bca1fa0 100644
--- a/minecraft-chat/src/text_component.rs
+++ b/minecraft-chat/src/text_component.rs
@@ -1,4 +1,4 @@
-use crate::{base_component::BaseComponent, component::Component};
+use crate::base_component::BaseComponent;
#[derive(Clone, Debug)]
pub struct TextComponent {
@@ -9,8 +9,8 @@ pub struct TextComponent {
impl<'a> TextComponent {
pub fn new(text: String) -> Self {
Self {
- text: text,
base: BaseComponent::new(),
+ text,
}
}