Skip to content

Commit

Permalink
Replaces .as_ref() in lambda with std::option::Option::as_ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Dec 5, 2023
1 parent 4c17046 commit 8d60aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program-runtime/src/invoke_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ impl<'a> InvokeContext<'a> {
pub fn get_syscall_context(&self) -> Result<&SyscallContext, InstructionError> {
self.syscall_context
.last()
.and_then(|syscall_context| syscall_context.as_ref())
.and_then(std::option::Option::as_ref)
.ok_or(InstructionError::CallDepth)
}

Expand Down

0 comments on commit 8d60aca

Please sign in to comment.