Function difft::display::context::compact_gaps
source · fn compact_gaps(
items: &[(Option<LineNumber>, Option<LineNumber>)]
) -> Vec<(Option<LineNumber>, Option<LineNumber>)>
Expand description
Before:
10 – 11 – – 20 12 21
After:
10 20 11 – 12 21
The returned vec will contain no (None, None) pairs.