mirror of https://git.sr.ht/~stygianentity/bincode
Fix `WithOtherTrailing` and `WithOtherIntEncoding` (#342)
They should be Copy/Clone as the rest of the Options Closes #341
This commit is contained in:
parent
00c43bf3b1
commit
5a134cf991
|
|
@ -242,12 +242,14 @@ pub struct WithOtherEndian<O: Options, E: BincodeByteOrder> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A configuration struct with a user-specified length encoding
|
/// A configuration struct with a user-specified length encoding
|
||||||
|
#[derive(Clone, Copy)]
|
||||||
pub struct WithOtherIntEncoding<O: Options, I: IntEncoding> {
|
pub struct WithOtherIntEncoding<O: Options, I: IntEncoding> {
|
||||||
options: O,
|
options: O,
|
||||||
_length: PhantomData<I>,
|
_length: PhantomData<I>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A configuration struct with a user-specified trailing bytes behavior.
|
/// A configuration struct with a user-specified trailing bytes behavior.
|
||||||
|
#[derive(Clone, Copy)]
|
||||||
pub struct WithOtherTrailing<O: Options, T: TrailingBytes> {
|
pub struct WithOtherTrailing<O: Options, T: TrailingBytes> {
|
||||||
options: O,
|
options: O,
|
||||||
_trailing: PhantomData<T>,
|
_trailing: PhantomData<T>,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue