chore: cargo +nightly clippy --fix -Z unstable-options

This commit is contained in:
Alexander Meißner
2021-06-18 15:34:46 +02:00
committed by Michael Vines
parent 3570b00560
commit 6514096a67
177 changed files with 1021 additions and 1021 deletions

View File

@@ -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());
}
}

View File

@@ -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);