From 9b14e006534e9548542e2f7fb3abb12ac48705ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Mon, 7 Nov 2022 13:55:36 +0100 Subject: [PATCH] Fix merge error --- .../cosmwasm-smart-contracts/contracts-common/src/types.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/cosmwasm-smart-contracts/contracts-common/src/types.rs b/common/cosmwasm-smart-contracts/contracts-common/src/types.rs index 5acef76350..b2721d7c6b 100644 --- a/common/cosmwasm-smart-contracts/contracts-common/src/types.rs +++ b/common/cosmwasm-smart-contracts/contracts-common/src/types.rs @@ -72,11 +72,7 @@ impl Percent { impl Display for Percent { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { - // Adding this as part of resolving release -> develop merge conflict. - // At the time, unwraps were forbidden in develop, but not (yet) in release. - // Clearly we should fix this. - #[allow(clippy::unwrap_used)] - let adjusted = Decimal::from_atomics(100u32, 0).unwrap() * self.0; + let adjusted = Decimal::from_ratio(100u32, 1u32) * self.0; write!(f, "{}%", adjusted) } }