fix comparisons to partial string tails (#1420)

This commit is contained in:
Mark Thom
2022-04-14 22:14:23 -06:00
parent 7595ec16e5
commit 05c14d5780
3 changed files with 63 additions and 56 deletions

View File

@@ -542,7 +542,6 @@ pub fn compare_pstr_prefixes<'a>(
#[inline(always)]
fn step(iter: &mut HeapPStrIter, hare: usize) -> Option<PStrIterStep> {
let result = iter.step(hare);
iter.focus = iter.heap[hare];
if iter.focus.is_string_terminator(iter.heap) {