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:
1 parent
dfc0b8afe9
commit
a6d9ed216d
26 files changed
+134
-149
No files matched your search
@@ -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>,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user