fn close_units(
units: &mut Vec<Unit>,
extents: &[Extent],
index: &ExtentIndex<'_>,
)Expand description
Merges units until no file intrudes on a unit it does not belong to.
Each check only visits the files the index finds near the unit, and each merge re-checks only the merged unit.