Skip to content

Commit fc9d658

Browse files
committed
Ran cargo fmt
1 parent 60cb648 commit fc9d658

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

crates/vm/levm/src/opcode_handlers/system.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -952,9 +952,7 @@ impl<'a> VM<'a> {
952952
// What to do, depending on TxResult
953953
match tx_report.result {
954954
TxResult::Success => {
955-
self.next_call_frame_mut()?
956-
.stack
957-
.push(SUCCESS_FOR_CALL)?;
955+
self.next_call_frame_mut()?.stack.push(SUCCESS_FOR_CALL)?;
958956
for (address, account_opt) in self.current_call_frame()?.cache_backup.clone() {
959957
self.next_call_frame_mut()?
960958
.cache_backup

crates/vm/levm/src/vm.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,13 @@ impl<'a> VM<'a> {
451451
}
452452

453453
pub fn next_call_frame_mut(&mut self) -> Result<&mut CallFrame, VMError> {
454-
let second_to_last_index = self.call_frames.len().checked_sub(2).ok_or(VMError::Internal(InternalError::CouldNotAccessLastCallframe))?;
454+
let second_to_last_index =
455+
self.call_frames
456+
.len()
457+
.checked_sub(2)
458+
.ok_or(VMError::Internal(
459+
InternalError::CouldNotAccessLastCallframe,
460+
))?;
455461
Ok(&mut self.call_frames[second_to_last_index])
456462
}
457463

0 commit comments

Comments
 (0)