remove unreachable branch in increment_s_ptr
@@ -689,7 +689,7 @@ fn increment_s_ptr(&mut self, rhs: usize) {
&mut HeapPtr::PStrChar(h, ref mut n) |
&mut HeapPtr::PStrLocation(h, ref mut n) => {
match &self.heap[h] {
- HeapCellValue::PartialString(ref pstr, _) => {
+ &HeapCellValue::PartialString(ref pstr, _) => {
for c in pstr.range_from(*n ..).take(rhs) {
*n += c.len_utf8();
}
@@ -697,7 +697,6 @@ fn increment_s_ptr(&mut self, rhs: usize) {
self.s = HeapPtr::PStrLocation(h, *n);
}
_ => {
- unreachable!()
}
}
}
