Skip to content

Commit

Permalink
Rollup merge of #100203 - compiler-errors:command-args-size-hint, r=m…
Browse files Browse the repository at this point in the history
…-ou-se

provide correct size hint for unsupported platform `CommandArgs`

Split from #99880 (comment)
  • Loading branch information
matthiaskrgr authored Aug 11, 2022
2 parents 275d4e7 + 725da87 commit bd64d67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/sys/unsupported/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ impl<'a> Iterator for CommandArgs<'a> {
fn next(&mut self) -> Option<&'a OsStr> {
None
}
fn size_hint(&self) -> (usize, Option<usize>) {
(0, Some(0))
}
}

impl<'a> ExactSizeIterator for CommandArgs<'a> {}
Expand Down

0 comments on commit bd64d67

Please sign in to comment.