From 5b80bc2df31e07e2e6e203e652a301bd8a29a610 Mon Sep 17 00:00:00 2001 From: timvisee Date: Tue, 23 Nov 2021 13:25:34 +0100 Subject: [PATCH] Make PACKET_ID public --- protocol/src/version/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/version/mod.rs b/protocol/src/version/mod.rs index 939b6df..10d9cc3 100644 --- a/protocol/src/version/mod.rs +++ b/protocol/src/version/mod.rs @@ -14,7 +14,7 @@ pub trait PacketId { macro_rules! set_packet_id ( ($type: ident, $id: expr) => ( impl $type { - const PACKET_ID: u8 = $id; + pub const PACKET_ID: u8 = $id; } impl PacketId for $type {