diff --git a/src/error.rs b/src/error.rs index 38dd95c..1621860 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,5 +1,6 @@ /// The result of a coding operation on a pair of buffer. #[must_use = "Contains a status with potential error information"] +#[derive(Debug)] pub struct BufferResult { /// The number of bytes consumed from the input buffer. pub consumed_in: usize, @@ -11,6 +12,7 @@ pub struct BufferResult { /// The result of a coding operation into a vector. #[must_use = "Contains a status with potential error information"] +#[derive(Debug)] pub struct VectorResult { /// The number of bytes consumed from the input buffer. pub consumed_in: usize, @@ -23,6 +25,7 @@ pub struct VectorResult { /// The result of coding into an output stream. #[cfg(feature = "std")] #[must_use = "Contains a status with potential error information"] +#[derive(Debug)] pub struct StreamResult { /// The total number of bytes consumed from the reader. pub bytes_read: usize,