From 690adc6282f260a7d149920764c4799609ef02a5 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Mon, 29 Nov 2021 20:48:45 -0300 Subject: Require Any for future-proofing --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.4.1