Skip to content
Snippets Groups Projects
Commit c2e6b917 authored by Shaopeng Wang's avatar Shaopeng Wang Committed by Gavin Wood
Browse files

Perthings: derive PartialOrd and Ord under no_std. (#4309)

parent 5e664ede
No related merge requests found
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment