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:
parent
3ba071b993
commit
d989183f94
4 changed files with 69 additions and 28 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue