mirror of
https://github.com/Zenithsiz/zbuild.git
synced 2026-02-08 08:45:28 +00:00
Clarified dependency result calculation
This commit is contained in:
parent
7ab8bf7aeb
commit
2983f20a80
@ -369,9 +369,12 @@ impl Builder {
|
||||
};
|
||||
|
||||
let deps = util::chain!(
|
||||
dep_target
|
||||
.zip(dep_res.zip(dep_guard))
|
||||
.map(|(dep_target, (dep_res, guard))| (dep_target, dep_res, guard)),
|
||||
match (dep_target, dep_res, dep_guard) {
|
||||
(Some(dep_target), Some(dep_res), Some(dep_guard)) =>
|
||||
Some((dep_target, dep_res, dep_guard)),
|
||||
(None, None, None) => None,
|
||||
_ => unreachable!(),
|
||||
},
|
||||
dep_deps.into_iter()
|
||||
)
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user