Skip to content

Commit

Permalink
Set Decimal as Copy
Browse files Browse the repository at this point in the history
The underlying type is just i64.
  • Loading branch information
j4r0u53k committed Jul 3, 2024
1 parent 890cc33 commit 9913791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9913791

Please sign in to comment.