Fix whitespace issues when using paths-file.

This commit is contained in:
Jostein Kjønigsen 2021-10-25 23:51:01 +02:00
parent d05c665863
commit d0559ca43f

View file

@ -544,7 +544,7 @@ fn collect_paths<'a>(
return Ok(fs::read_to_string(paths_file)
.with_context(|| format!("Failed to read paths file {}", paths_file))?
.trim()
.split_ascii_whitespace()
.lines()
.map(String::from)
.collect::<Vec<_>>());
}