diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2021-12-05 01:04:35 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2021-12-05 01:04:35 -0300 |
commit | 23712f84e2f72bc8ac516882888d011e13f8c49a (patch) | |
tree | d28ab6d036d31a466eadbee2e50c1cda836db4aa | |
parent | 70137e6614843c42dd9ad32abf00e5fc7da7662f (diff) |
Let FloatArgumentType derive more things
-rw-r--r-- | src/args.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs index 10b8fea..ca35bfb 100644 --- a/src/args.rs +++ b/src/args.rs @@ -251,7 +251,7 @@ where } /// A float argument. -#[derive(Copy, Clone, PartialEq, Debug, PartialOrd, Default)] +#[derive(Copy, Clone, PartialEq, Eq, Debug, PartialOrd, Ord, Hash, Default)] pub struct FloatArgumentType<T, R: RangeBounds<T>> { /// The valid range for this argument. pub range: R, |