Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed Jan 18, 2021
1 parent d36d6dd commit 3e6b448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parse/matches/arg_matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ impl<'a> Default for Values<'a> {
// This is never called because the iterator is empty:
fn to_str_slice(_: &OsString) -> &str {
unreachable!()
};
}
Values {
iter: EMPTY[..].iter().flatten().map(to_str_slice),
}
Expand Down Expand Up @@ -1087,7 +1087,7 @@ impl Default for OsValues<'_> {
// This is never called because the iterator is empty:
fn to_str_slice(_: &OsString) -> &OsStr {
unreachable!()
};
}
OsValues {
iter: EMPTY[..].iter().flatten().map(to_str_slice),
}
Expand Down

0 comments on commit 3e6b448

Please sign in to comment.