More nightly clippy fixes
This commit is contained in:
parent
4a12c715a3
commit
1b7f6d2bc0
@ -21,16 +21,8 @@ fn process_instruction(
|
||||
let mut lamports = accounts[0].lamports();
|
||||
let owner = &accounts[0].owner;
|
||||
let mut data = accounts[0].try_borrow_mut_data()?;
|
||||
let account = AccountInfo::new(
|
||||
&key,
|
||||
false,
|
||||
false,
|
||||
&mut lamports,
|
||||
&mut data,
|
||||
&owner,
|
||||
true,
|
||||
0,
|
||||
);
|
||||
let account =
|
||||
AccountInfo::new(&key, false, false, &mut lamports, &mut data, owner, true, 0);
|
||||
msg!("{:?} calling {:?}", program_id, key);
|
||||
invoke(&ix, &[account])?;
|
||||
} else {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ fn process_instruction(
|
||||
data: instruction_data.to_owned(),
|
||||
program_id: *to_call,
|
||||
};
|
||||
let _ = invoke(&instruction, &infos);
|
||||
let _ = invoke(&instruction, infos);
|
||||
|
||||
Err(42.into())
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ fn process_instruction(
|
||||
data: instruction_data.to_owned(),
|
||||
program_id: *to_call,
|
||||
};
|
||||
let _ = invoke(&instruction, &infos);
|
||||
let _ = invoke(&instruction, infos);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
@ -27,5 +27,5 @@ fn process_instruction(
|
||||
data: instruction_data.to_owned(),
|
||||
program_id: *to_call,
|
||||
};
|
||||
invoke(&instruction, &infos)
|
||||
invoke(&instruction, infos)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user