Added Debug impl to Config

This commit is contained in:
jean-airoldie 2019-10-26 19:05:48 -04:00 committed by Josh Matthews
parent 3a3857ff38
commit 4aa2a44965
1 changed files with 3 additions and 3 deletions

View File

@ -69,13 +69,13 @@ impl Options for DefaultOptions {
} }
} }
#[derive(Clone, Copy)] #[derive(Clone, Copy, Debug)]
enum LimitOption { enum LimitOption {
Unlimited, Unlimited,
Limited(u64), Limited(u64),
} }
#[derive(Clone, Copy)] #[derive(Clone, Copy, Debug)]
enum EndianOption { enum EndianOption {
Big, Big,
Little, Little,
@ -95,7 +95,7 @@ enum EndianOption {
/// ///
/// When a byte limit is set, bincode will return `Err` on any deserialization that goes over the limit, or any /// When a byte limit is set, bincode will return `Err` on any deserialization that goes over the limit, or any
/// serialization that goes over the limit. /// serialization that goes over the limit.
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct Config { pub struct Config {
limit: LimitOption, limit: LimitOption,
endian: EndianOption, endian: EndianOption,