Skip to content

Commit bd64d67

Browse files
authoredAug 11, 2022
Rollup merge of #100203 - compiler-errors:command-args-size-hint, r=m-ou-se
provide correct size hint for unsupported platform `CommandArgs` Split from #99880 (comment)
2 parents 275d4e7 + 725da87 commit bd64d67

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎library/std/src/sys/unsupported/process.rs

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ impl<'a> Iterator for CommandArgs<'a> {
200200
fn next(&mut self) -> Option<&'a OsStr> {
201201
None
202202
}
203+
fn size_hint(&self) -> (usize, Option<usize>) {
204+
(0, Some(0))
205+
}
203206
}
204207

205208
impl<'a> ExactSizeIterator for CommandArgs<'a> {}

0 commit comments

Comments
 (0)