We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46887bb commit f905c53Copy full SHA for f905c53
src/enc_dec_builder/mod.rs
@@ -52,7 +52,7 @@ pub trait PtEncoderDecoder {
52
Self: Sized;
53
}
54
55
-#[derive(Debug, Clone)]
+#[derive(Debug)]
56
#[repr(transparent)]
57
pub struct EncoderDecoderBuilder<T> {
58
pub(crate) config: pt_config,
@@ -68,6 +68,15 @@ where
68
69
70
71
+impl<T> Clone for EncoderDecoderBuilder<T> {
72
+ fn clone(&self) -> Self {
73
+ Self {
74
+ config: self.config,
75
+ target: PhantomData,
76
+ }
77
78
+}
79
+
80
impl<T> EncoderDecoderBuilder<T>
81
where
82
T: PtEncoderDecoder,
0 commit comments