Skip to content

Commit 96ff776

Browse files
committed
Remove peekable iterator
It's no longer necessary.
1 parent ad6726e commit 96ff776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl Options {
364364
.ok_or_else(|| Fail::UnrecognizedOption(format!("{:?}", i.as_ref())))
365365
.map(|s| s.to_owned())
366366
}).collect::<::std::result::Result<Vec<_>, _>>()?;
367-
let mut args = args.into_iter().peekable();
367+
let mut args = args.into_iter();
368368
let mut arg_pos = 0;
369369
while let Some(cur) = args.next() {
370370
if !is_arg(&cur) {

0 commit comments

Comments
 (0)