Make PACKET_ID public

This commit is contained in:
timvisee
2021-11-23 13:25:34 +01:00
parent 113f7f0bb2
commit 5b80bc2df3

View File

@@ -14,7 +14,7 @@ pub trait PacketId {
macro_rules! set_packet_id ( macro_rules! set_packet_id (
($type: ident, $id: expr) => ( ($type: ident, $id: expr) => (
impl $type { impl $type {
const PACKET_ID: u8 = $id; pub const PACKET_ID: u8 = $id;
} }
impl PacketId for $type { impl PacketId for $type {