simplify path joining code a bit
This commit is contained in:
parent
fbdf926e70
commit
041ad1fcfe
1 changed files with 1 additions and 9 deletions
|
|
@ -265,15 +265,7 @@ pub fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
|
|||
);
|
||||
let output =
|
||||
String::from_utf8(output.stdout).expect("rustc returned non-UTF-8 filename");
|
||||
output
|
||||
.lines()
|
||||
.filter(|l| !l.is_empty())
|
||||
.map(|l| {
|
||||
let mut p = path.clone();
|
||||
p.push(l);
|
||||
p
|
||||
})
|
||||
.collect()
|
||||
output.lines().filter(|l| !l.is_empty()).map(|l| path.join(l)).collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue