owner() lifetime issue (#16875)

This commit is contained in:
Jeff Washington (jwash) 2021-04-27 12:57:47 -05:00 committed by GitHub
parent 8f56c116d7
commit 2f5102587c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2449,7 +2449,7 @@ fn main() {
rewarded_accounts.sort_unstable_by_key(
|(pubkey, account, base_lamports)| {
(
account.owner(),
*account.owner(),
*base_lamports,
account.lamports - base_lamports,
*pubkey,