From 63ef27f60e8d75b4ca0d41db44f7ed07c1f12d46 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sun, 17 Jul 2022 12:23:03 +0200 Subject: [PATCH] Fix clippy warning --- programs/bpf_loader/src/syscalls/cpi.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/bpf_loader/src/syscalls/cpi.rs b/programs/bpf_loader/src/syscalls/cpi.rs index b607a1c9075e1e..676f6c12d5e0a4 100644 --- a/programs/bpf_loader/src/syscalls/cpi.rs +++ b/programs/bpf_loader/src/syscalls/cpi.rs @@ -690,9 +690,10 @@ where .feature_set .is_active(&enable_early_verification_of_account_modifications::id()) { - Err(SyscallError::InstructionError( + return Err(SyscallError::InstructionError( InstructionError::RentEpochModified, - ))?; + ) + .into()); } else { callee_account .borrow_mut()