Skip to content

Commit 725da87

Browse files
provide correct size hint for unsupported platform CommandArgs
1 parent d77da9d commit 725da87

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)