mirror of https://git.sr.ht/~stygianentity/bincode
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 {
|
||||
Unlimited,
|
||||
Limited(u64),
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
enum EndianOption {
|
||||
Big,
|
||||
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
|
||||
/// serialization that goes over the limit.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Config {
|
||||
limit: LimitOption,
|
||||
endian: EndianOption,
|
||||
|
|
|
|||
Loading…
Reference in New Issue