summaryrefslogtreecommitdiff
path: root/src/task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/task.rs')
-rw-r--r--src/task.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/task.rs b/src/task.rs
index 693ab52..dfb818b 100644
--- a/src/task.rs
+++ b/src/task.rs
@@ -51,9 +51,9 @@ fn read_depfile(path: &Path) -> anyhow::Result<Vec<String>> {
.map_err(|err| anyhow!(scanner.format_parse_error(path, err)))?;
// TODO verify deps refers to correct output
let deps: Vec<String> = parsed_deps
- .deps
- .iter()
- .map(|&dep| dep.to_string())
+ .values()
+ .flat_map(|x| x.iter())
+ .map(|&dep| dep.to_owned())
.collect();
Ok(deps)
}