mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
some minor enum cleanup
This commit is contained in:
parent
70fe69db21
commit
2ebd7e9693
3 changed files with 7 additions and 22 deletions
|
|
@ -1,5 +1,4 @@
|
|||
use bitbuffer::{BitRead, BitWrite, BitWriteStream, LittleEndian};
|
||||
use num_enum::TryFromPrimitive;
|
||||
|
||||
use crate::{Parse, ParserState, Result, Stream};
|
||||
|
||||
|
|
@ -32,7 +31,7 @@ pub enum Packet<'a> {
|
|||
StringTables(StringTablePacket<'a>),
|
||||
}
|
||||
|
||||
#[derive(BitRead, BitWrite, TryFromPrimitive, Debug, Clone, Copy, Eq, PartialEq)]
|
||||
#[derive(BitRead, BitWrite, Debug, Clone, Copy, Eq, PartialEq)]
|
||||
#[discriminant_bits = 8]
|
||||
#[repr(u8)]
|
||||
pub enum PacketType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue