1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-11-30 02:30:46 +01:00

borrowed data

This commit is contained in:
Robin Appelman 2020-12-06 00:55:54 +01:00
commit a4ddd586dd
27 changed files with 181 additions and 176 deletions

View file

@ -212,7 +212,7 @@ pub struct DataTablePacket {
pub server_classes: Vec<ServerClass>,
}
impl Parse for DataTablePacket {
impl Parse<'_> for DataTablePacket {
fn parse(stream: &mut Stream, state: &ParserState) -> Result<Self> {
let tick = stream.read()?;
let len = stream.read_int::<usize>(32)?;