From 991379191b29cfe078f72f533b5fb8d646e7c584 Mon Sep 17 00:00:00 2001 From: Jaroslav Beran Date: Wed, 3 Jul 2024 02:55:20 +0200 Subject: [PATCH] Set Decimal as Copy The underlying type is just i64. --- src/decimal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decimal.rs b/src/decimal.rs index f74a83a..e11f66c 100644 --- a/src/decimal.rs +++ b/src/decimal.rs @@ -2,7 +2,7 @@ /// mantisa: 56, exponent: 8; /// I'm storing whole Decimal in one i64 to keep size_of RpcValue == 24 -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Copy, Clone, PartialEq)] pub struct Decimal (i64); impl Decimal {