Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pdl-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use bytes::{BufMut, Bytes, BytesMut};

/// Type of parsing errors.
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq)]
pub enum DecodeError {
#[error("packet parsing failed")]
InvalidPacketError,
Expand Down Expand Up @@ -54,7 +54,7 @@ pub enum DecodeError {
}

/// Type of serialization errors.
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
#[derive(Debug, Clone, thiserror::Error, PartialEq, Eq)]
pub enum EncodeError {
#[error("the size of {packet}::{field} ({size}) is outside the range of valid values 0..{maximum_size}")]
SizeOverflow { packet: &'static str, field: &'static str, size: usize, maximum_size: usize },
Expand Down
Loading