mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 05:43:08 +00:00
avoid using manual indexing in vector
This commit is contained in:
parent
8e1c53bd4e
commit
3f636465f6
@ -29,7 +29,7 @@ fn main() {
|
||||
panic!("Max depth is exceeded");
|
||||
}
|
||||
|
||||
if program_outputs[num_calls - 1].chained_call.is_some() {
|
||||
if program_outputs.last().and_then(|last| last.chained_call.as_ref()).is_some() {
|
||||
panic!("Call stack is incomplete");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user