Skip to content

Commit

Permalink
Fix incorrect sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed May 11, 2024
1 parent f17f3dd commit 55beed9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/re_query/src/range/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,10 @@ impl RangeComponentResultsInner {
}),
"back promises must always be sorted in ascending index order"
);
if let (Some(p_index), Some(i_index)) =
(promises_back.last().map(|(index, _)| index), indices.back())
{
if let (Some(p_index), Some(i_index)) = (
promises_back.first().map(|(index, _)| index),
indices.back(),
) {
assert!(
i_index < p_index,
"the leftmost back promise must have an index larger than the rightmost data index ({i_index:?} < {p_index:?})",
Expand Down

0 comments on commit 55beed9

Please sign in to comment.