Skip to content

Commit 031b30b

Browse files
committed
Oops. Important stuff was happening inside a debug_assert! breaking release builds
1 parent 0782de1 commit 031b30b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/product_zipper.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,8 @@ impl<'trie, PrimaryZ, SecondaryZ, V> ProductZipperG<'trie, PrimaryZ, SecondaryZ,
504504
let Some(&byte) = self.path().last() else {
505505
return None;
506506
};
507-
debug_assert_eq!(self.ascend(1), 1, "must ascend");
507+
let ascended = self.ascend(1);
508+
debug_assert_eq!(ascended, 1, "must ascend");
508509
let child_mask = self.child_mask();
509510
let Some(sibling_byte) = (if next {
510511
child_mask.next_bit(byte)

0 commit comments

Comments
 (0)