From 5a134cf99100f67d06591f3b7bf20e5adc55490b Mon Sep 17 00:00:00 2001 From: luben karavelov Date: Mon, 20 Jul 2020 18:22:30 +0100 Subject: [PATCH] Fix `WithOtherTrailing` and `WithOtherIntEncoding` (#342) They should be Copy/Clone as the rest of the Options Closes #341 --- src/config/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/mod.rs b/src/config/mod.rs index bf90dee..93b5f3f 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -242,12 +242,14 @@ pub struct WithOtherEndian { } /// A configuration struct with a user-specified length encoding +#[derive(Clone, Copy)] pub struct WithOtherIntEncoding { options: O, _length: PhantomData, } /// A configuration struct with a user-specified trailing bytes behavior. +#[derive(Clone, Copy)] pub struct WithOtherTrailing { options: O, _trailing: PhantomData,