Function
recurse
(
map: &HashMap<RawString, Vec<RawString>>,
artifact: &RawStr,
handle: &mut impl FnMut(&RawStr),
)
Source from the content-addressed store, hash-verified
| 800 | Ok(()) |
| 801 | })?; |
| 802 | fn recurse( |
| 803 | map: &HashMap<RawString, Vec<RawString>>, |
| 804 | artifact: &RawStr, |
| 805 | handle: &mut impl FnMut(&RawStr), |
| 806 | ) { |
| 807 | match map.get(artifact) { |
| 808 | Some(entries) => { |
| 809 | for entry in entries { |
| 810 | recurse(map, entry, handle); |
| 811 | } |
| 812 | } |
| 813 | None => handle(artifact), |
| 814 | } |
| 815 | } |
| 816 | recurse(&deps_map, artifact.to_str().unwrap().into(), &mut handle); |
| 817 | Ok(()) |
| 818 | } |
Tested by
no test coverage detected