Updated RangeMap to Add Clear().

This commit is contained in:
Andrew Wheeler 2022-12-29 10:25:01 -05:00 committed by Jeremy Soller
parent b9fef72f76
commit 8614a7a398
3 changed files with 5 additions and 3 deletions

View file

@ -251,8 +251,7 @@ impl AttrsList {
/// Clear the current attribute spans
pub fn clear_spans(&mut self) {
//Todo: Once clear is added Change this back to clear.
self.spans = RangeMap::new();
self.spans.clear();
}
/// Add an attribute span, removes any previous matching parts of spans