fix(codec): Make Int struct copy (#170)

This commit is contained in:
Santiago Carmuega 2022-08-13 10:51:03 -03:00 committed by GitHub
parent bf2e8a7c88
commit bfc46a7ccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -751,7 +751,9 @@ impl From<Bytes> 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")]