Merge remote-tracking branch 'origin/main' into select-on-rename

This commit is contained in:
Nathan Sobo
2022-03-12 10:10:23 -07:00
6 changed files with 109 additions and 124 deletions
@@ -252,6 +252,14 @@ impl FoldMap {
self.buffer.lock().len(),
"transform tree does not match buffer's length"
);
let mut folds = self.folds.iter().peekable();
while let Some(fold) = folds.next() {
if let Some(next_fold) = folds.peek() {
let comparison = fold.0.cmp(&next_fold.0, &self.buffer.lock()).unwrap();
assert!(comparison.is_le());
}
}
}
}