More clippy

This commit is contained in:
Michael Vines
2019-10-02 18:33:01 -07:00
parent 9fe8c98047
commit f9f5bc2eb5
21 changed files with 97 additions and 90 deletions

View File

@@ -614,7 +614,7 @@ impl<'a> StakeAccount for KeyedAccount<'a> {
};
if lockup.slot > clock.slot && lockup.custodian != *to.unsigned_key() {
return Err(StakeError::LockupInForce)?;
return Err(StakeError::LockupInForce.into());
}
if lamports > self.account.lamports {
return Err(InstructionError::InsufficientFunds);