diff --git a/substrate/primitives/sr-arithmetic/src/per_things.rs b/substrate/primitives/sr-arithmetic/src/per_things.rs index ed63039c857c765adf28a66e309528a4b26bfdf9..4ab7f2f25acdb53cdd938dc5c4cf2d23bdb57a6d 100644 --- a/substrate/primitives/sr-arithmetic/src/per_things.rs +++ b/substrate/primitives/sr-arithmetic/src/per_things.rs @@ -27,8 +27,8 @@ macro_rules! implement_per_thing { /// A fixed point representation of a number between in the range [0, 1]. /// #[doc = $title] - #[cfg_attr(feature = "std", derive(Serialize, Deserialize, Ord, PartialOrd))] - #[derive(Encode, Decode, Default, Copy, Clone, PartialEq, Eq, RuntimeDebug, CompactAs)] + #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] + #[derive(Encode, Decode, Default, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, RuntimeDebug, CompactAs)] pub struct $name($type); impl $name {