Skip to content

Commit bf7aeaa

Browse files
committed
Filter out empty items in bootstrap::flags::split
1 parent 63eaa60 commit bf7aeaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/flags.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ impl Subcommand {
679679
}
680680

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

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

0 commit comments

Comments
 (0)