From 9ab7e6da6cbbdfa36bee74bc8a0c32fb7983485c Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 26 Feb 2017 17:53:46 -0500 Subject: [PATCH] Implement `ExactSizeIterator` for `Values`. --- src/args/arg_matches.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/args/arg_matches.rs b/src/args/arg_matches.rs index b20d490d7ec..12364fdc42b 100644 --- a/src/args/arg_matches.rs +++ b/src/args/arg_matches.rs @@ -568,6 +568,8 @@ impl<'a> DoubleEndedIterator for Values<'a> { fn next_back(&mut self) -> Option<&'a str> { self.iter.next_back() } } +impl<'a> ExactSizeIterator for Values<'a> {} + /// An iterator over the key-value pairs of a map. #[derive(Clone)] pub struct Iter<'a, V: 'a> {