File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ impl Decimal {
52
52
/// let value = Decimal::new(atoms);
53
53
/// assert_eq!(value.to_string(), "141183460469231731687.303715884105727125");
54
54
/// ```
55
+ #[ inline]
55
56
pub const fn new ( value : Uint128 ) -> Self {
56
57
Self ( value)
57
58
}
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ impl Decimal256 {
57
57
/// let value = Decimal256::new(atoms);
58
58
/// assert_eq!(value.to_string(), "141183460469231731687.303715884105727125");
59
59
/// ```
60
+ #[ inline]
60
61
pub const fn new ( value : Uint256 ) -> Self {
61
62
Self ( value)
62
63
}
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ impl SignedDecimal {
68
68
/// # use cosmwasm_std::{SignedDecimal, Int128};
69
69
/// assert_eq!(SignedDecimal::new(Int128::one()).to_string(), "0.000000000000000001");
70
70
/// ```
71
+ #[ inline]
71
72
pub const fn new ( value : Int128 ) -> Self {
72
73
Self ( value)
73
74
}
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ impl SignedDecimal256 {
80
80
/// # use cosmwasm_std::{SignedDecimal256, Int256};
81
81
/// assert_eq!(SignedDecimal256::new(Int256::one()).to_string(), "0.000000000000000001");
82
82
/// ```
83
+ #[ inline]
83
84
pub const fn new ( value : Int256 ) -> Self {
84
85
Self ( value)
85
86
}
You can’t perform that action at this time.
0 commit comments