Skip to content

Commit

Permalink
fix(OsValues): Add ExactSizeIterator implementation
Browse files Browse the repository at this point in the history
It seems like an oversight that this was omitted.
  • Loading branch information
tbu- committed Jun 22, 2018
1 parent 804f267 commit 356c69e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/args/arg_matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,8 @@ impl<'a> DoubleEndedIterator for OsValues<'a> {
fn next_back(&mut self) -> Option<&'a OsStr> { self.iter.next_back() }
}

impl<'a> ExactSizeIterator for OsValues<'a> {}

/// Creates an empty iterator.
impl<'a> Default for OsValues<'a> {
fn default() -> Self {
Expand Down

0 comments on commit 356c69e

Please sign in to comment.