mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Filter out empty items in bootstrap::flags::split
This commit is contained in:
@@ -679,7 +679,7 @@ pub fn open(&self) -> bool {
|
||||
}
|
||||
|
||||
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> {
|
||||
|
||||
Reference in New Issue
Block a user