Skip to content

Commit 065d969

Browse files
committed
fix: impl name for UnknownPacket
1 parent 317efb7 commit 065d969

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • crates/protocol_core/src

crates/protocol_core/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,16 @@ pub struct UnknownPacket {
5353
}
5454

5555
impl DynPacket for UnknownPacket {
56+
#[inline]
5657
fn id(&self) -> u16 {
5758
self.id
5859
}
60+
61+
#[cfg(feature = "dyn-name")]
62+
#[inline]
63+
fn name(&self) -> &'static str {
64+
"UnknownPacket"
65+
}
5966
}
6067

6168
pub trait Packets: DynPacket + Sized {

0 commit comments

Comments
 (0)