mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
optimize packet/message format a bit
This commit is contained in:
parent
11140b149b
commit
4cf1e92657
7 changed files with 36 additions and 28 deletions
|
|
@ -10,7 +10,7 @@ use crate::{Parse, ParseError, ParserState, ReadResult, Result, Stream};
|
|||
|
||||
#[derive(Debug)]
|
||||
pub struct CreateStringTableMessage {
|
||||
pub table: StringTable,
|
||||
pub table: Box<StringTable>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -85,7 +85,9 @@ impl Parse for CreateStringTableMessage {
|
|||
compressed,
|
||||
name,
|
||||
};
|
||||
Ok(CreateStringTableMessage { table })
|
||||
Ok(CreateStringTableMessage {
|
||||
table: Box::new(table),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue