Skip to content

Commit

Permalink
Filter out empty items in bootstrap::flags::split
Browse files Browse the repository at this point in the history
  • Loading branch information
tmandry committed Sep 29, 2020
1 parent 63eaa60 commit bf7aeaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ impl Subcommand {
}

fn split(s: &[String]) -> Vec<String> {
s.iter().flat_map(|s| s.split(',')).map(|s| s.to_string()).collect()
s.iter().flat_map(|s| s.split(',')).filter(|s| !s.is_empty()).map(|s| s.to_string()).collect()
}

fn parse_deny_warnings(matches: &getopts::Matches) -> Option<bool> {
Expand Down

0 comments on commit bf7aeaa

Please sign in to comment.