remove unreachable branch in increment_s_ptr (#575)
This commit is contained in:
@@ -689,7 +689,7 @@ impl MachineState {
|
||||
&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 @@ impl MachineState {
|
||||
self.s = HeapPtr::PStrLocation(h, *n);
|
||||
}
|
||||
_ => {
|
||||
unreachable!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user