From 18c0f76f89d5fd6094429dd0043e244dc3a0b64a Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 3 Oct 2019 15:59:30 -0700 Subject: [PATCH] clippy --- programs/stake_api/src/stake_instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/stake_api/src/stake_instruction.rs b/programs/stake_api/src/stake_instruction.rs index b72125247a..05dd3884fb 100644 --- a/programs/stake_api/src/stake_instruction.rs +++ b/programs/stake_api/src/stake_instruction.rs @@ -287,7 +287,7 @@ pub fn process_instruction( match deserialize(data).map_err(|_| InstructionError::InvalidInstructionData)? { StakeInstruction::Initialize(authorized, lockup) => { if rest.is_empty() { - Err(InstructionError::InvalidInstructionData)?; + return Err(InstructionError::InvalidInstructionData); } rent::verify_rent_exemption(me, &rest[0])?; me.initialize(&authorized, &lockup)