World: Add GZip compression
This commit is contained in:
1 parent
94a7a60423
commit
231bdb5614
8 files changed
+90
-64
No files matched your search
@@ -100,13 +100,13 @@ impl TextComponent {
|
||||
|
||||
pub fn encode(&self) -> Vec<u8> {
|
||||
// TODO: Somehow fix this ugly mess
|
||||
#[derive(serde::Serialize, Debug)]
|
||||
#[derive(serde::Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct TempStruct<'a> {
|
||||
#[serde(flatten)]
|
||||
text: &'a TextContent,
|
||||
#[serde(flatten)]
|
||||
pub style: &'a Style,
|
||||
style: &'a Style,
|
||||
}
|
||||
let astruct = TempStruct {
|
||||
text: &self.content,
|
||||
|
||||
Reference in new issue
Block a user