aboutsummaryrefslogtreecommitdiff
path: root/azalea-chat/src/text_component.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-chat/src/text_component.rs')
-rw-r--r--azalea-chat/src/text_component.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-chat/src/text_component.rs b/azalea-chat/src/text_component.rs
index 0fa0cd6f..c21e2d46 100644
--- a/azalea-chat/src/text_component.rs
+++ b/azalea-chat/src/text_component.rs
@@ -146,7 +146,7 @@ impl TextComponent {
FormattedText::Text(self)
}
pub fn with_style(mut self, style: Style) -> Self {
- self.base.style = Box::new(style);
+ *self.base.style = style;
self
}
}