nicer expect message
This commit is contained in:
parent
7819950790
commit
f1d64addf9
|
@ -1360,7 +1360,9 @@ impl ValueStack {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn top(&self) -> &RuntimeValueInternal {
|
fn top(&self) -> &RuntimeValueInternal {
|
||||||
self.0.top().expect("pre-validated")
|
self.0
|
||||||
|
.top()
|
||||||
|
.expect("The stack is empty, this should never be possible due to the validation step")
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Reference in New Issue