diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/deserialize.rs | 1 | ||||
-rw-r--r-- | src/protocol.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/deserialize.rs b/src/deserialize.rs index dd9a845..974dc30 100644 --- a/src/deserialize.rs +++ b/src/deserialize.rs @@ -1,6 +1,7 @@ use crate::types::VarInt; use alloc::{vec::Vec, string::{FromUtf8Error, String}, fmt}; +#[derive(Clone)] pub enum DeserializeErr { Eof, VarNumTooLong(Vec<u8>), diff --git a/src/protocol.rs b/src/protocol.rs index f8873a1..0b3e4c1 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -129,6 +129,7 @@ pub trait RawPacket<'a>: HasPacketId + Sized { pub trait Packet: HasPacketId + HasPacketBody + Sized {} +#[derive(Clone)] pub enum PacketErr { UnknownId(Id), DeserializeFailed(DeserializeErr), @@ -729,4 +730,4 @@ macro_rules! proto_byte_flag { } } } -}
\ No newline at end of file +} |