Use Cow's in TextComponent

We now don't always convert &str to Strings allowing us to use stack allocations
This commit is contained in:
Snowiiii committed 2024-08-19 20:05:18 +02:00
1 parent dfc0b8afe9
commit a6d9ed216d
26 files changed
+134 -149

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ pub struct ChatType {
pub struct Decoration {
translation_key: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
style: Option<Style>,
style: Option<Style<'static>>,
parameters: Vec<String>,
}