More nightly clippy fixes (#18081)

(cherry picked from commit 1b7f6d2bc0)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-06-21 21:55:42 +00:00
committed by GitHub
parent d52569d66f
commit b711778d4a
5 changed files with 7 additions and 15 deletions

View File

@@ -71,7 +71,7 @@ fn process_instruction(
AccountMeta::new_readonly(*accounts[3].key, true),
],
);
invoke(&instruction, &accounts)?;
invoke(&instruction, accounts)?;
let instruction = Instruction::new_with_bytes(
*program_id,
@@ -83,7 +83,7 @@ fn process_instruction(
AccountMeta::new(*accounts[3].key, false),
],
);
invoke(&instruction, &accounts)?;
invoke(&instruction, accounts)?;
assert_eq!(accounts[2].try_borrow_mut_data()?[0], 3);
assert_eq!(accounts[3].try_borrow_mut_data()?[0], 3);
}