Remove Debug constraint on SumTree (and its related traits/structs) (#18248)

Release Notes:

- N/A

Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2024-09-23 16:21:24 -06:00
committed by GitHub
co-authored by Nathan
parent 3ba071b993
commit d989183f94
4 changed files with 69 additions and 28 deletions
+2 -4
View File
@@ -431,11 +431,9 @@ where
aggregate: &mut dyn SeekAggregate<'a, T>,
cx: &<T::Summary as Summary>::Context,
) -> bool {
debug_assert!(
assert!(
target.cmp(&self.position, cx) >= Ordering::Equal,
"cannot seek backward from {:?} to {:?}",
self.position,
target
"cannot seek backward",
);
if !self.did_seek {