diff options
-rw-r--r-- | src/args.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/args.rs b/src/args.rs index 638f90d..7e84b48 100644 --- a/src/args.rs +++ b/src/args.rs @@ -42,12 +42,12 @@ pub struct CommandContext<'a, T>(::std::marker::PhantomData<(&'a str, T)>); /// } /// } /// ``` -pub trait ArgumentType<'i, T: StringReader<'i>, S, E> { +pub trait ArgumentType<'i, R: StringReader<'i>, S, E> { /// The parsed type of the argument. 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>; + fn parse(&self, reader: &mut R) -> Result<Self::Result, E>; /// Creates suggestions for this argument. // The hope here is that S is lightweight enough for one to clone into the |