Added Debug impl to Config
This commit is contained in:
parent
3a3857ff38
commit
4aa2a44965
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue