From bfc46a7ccbbba9e0ff2df41acb8075a4fe29760c Mon Sep 17 00:00:00 2001 From: Santiago Carmuega Date: Sat, 13 Aug 2022 10:51:03 -0300 Subject: [PATCH] fix(codec): Make Int struct copy (#170) --- pallas-codec/src/utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pallas-codec/src/utils.rs b/pallas-codec/src/utils.rs index d8188aa..d75799b 100644 --- a/pallas-codec/src/utils.rs +++ b/pallas-codec/src/utils.rs @@ -751,7 +751,9 @@ impl From for String { } } -#[derive(Serialize, Deserialize, Clone, Encode, Decode, Debug, PartialEq, Eq, PartialOrd, Ord)] +#[derive( + Serialize, Deserialize, Clone, Copy, Encode, Decode, Debug, PartialEq, Eq, PartialOrd, Ord, +)] #[cbor(transparent)] #[serde(into = "i128")] #[serde(try_from = "i128")]