summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-11-29 20:48:45 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-11-29 20:48:45 -0300
commit690adc6282f260a7d149920764c4799609ef02a5 (patch)
treed290708f49c3600b6c808187b1ef4dd7d8c70e1a
parent66a4a0a9971bae76174a8fdc973d19f26516f11d (diff)
Require Any for future-proofing
-rw-r--r--src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs
index 2b93e71..638f90d 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -44,7 +44,7 @@ pub struct CommandContext<'a, T>(::std::marker::PhantomData<(&'a str, T)>);
 /// ```
 pub trait ArgumentType<'i, T: StringReader<'i>, S, E> {
     /// The parsed type of the argument.
-    type Result: Sized + 'static;
+    type Result: Sized + 'static + ::std::any::Any;
 
     /// Parses an argument of this type, returning the parsed argument.
     fn parse(&self, reader: &mut T) -> Result<Self::Result, E>;