summary refs log tree commit diff stats
path: root/src/args.rs
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-12-05 01:04:35 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-12-05 01:04:35 -0300
commit23712f84e2f72bc8ac516882888d011e13f8c49a (patch)
treed28ab6d036d31a466eadbee2e50c1cda836db4aa /src/args.rs
parent70137e6614843c42dd9ad32abf00e5fc7da7662f (diff)
Let FloatArgumentType derive more things
Diffstat (limited to 'src/args.rs')
-rw-r--r--src/args.rs2
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,