chore: cargo +nightly clippy --fix -Z unstable-options
This commit is contained in:
committed by
Michael Vines
parent
3570b00560
commit
6514096a67
@@ -654,7 +654,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_process_faucet_request() {
|
||||
let to = solana_sdk::pubkey::new_rand();
|
||||
let blockhash = Hash::new(&to.as_ref());
|
||||
let blockhash = Hash::new(to.as_ref());
|
||||
let lamports = 50;
|
||||
let req = FaucetRequest::GetAirdrop {
|
||||
lamports,
|
||||
@@ -679,6 +679,6 @@ mod tests {
|
||||
assert_eq!(expected_vec_with_length, response_vec);
|
||||
|
||||
let bad_bytes = "bad bytes".as_bytes();
|
||||
assert!(faucet.process_faucet_request(&bad_bytes, ip).is_err());
|
||||
assert!(faucet.process_faucet_request(bad_bytes, ip).is_err());
|
||||
}
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ fn test_local_faucet() {
|
||||
let keypair = Keypair::new();
|
||||
let to = solana_sdk::pubkey::new_rand();
|
||||
let lamports = 50;
|
||||
let blockhash = Hash::new(&to.as_ref());
|
||||
let blockhash = Hash::new(to.as_ref());
|
||||
let create_instruction = system_instruction::transfer(&keypair.pubkey(), &to, lamports);
|
||||
let message = Message::new(&[create_instruction], Some(&keypair.pubkey()));
|
||||
let expected_tx = Transaction::new(&[&keypair], message, blockhash);
|
||||
|
Reference in New Issue
Block a user