Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Jan 12, 2024
1 parent 9e1c367 commit 1923cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bench/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ fn transaction_size_small() {

let seed = 42;
let random_strings = BenchHelper::generate_random_strings(1, Some(seed), 10);
let rand_string = random_strings.get(0).unwrap();
let rand_string = random_strings.first().unwrap();
let tx = BenchHelper::create_memo_tx_small(rand_string, &payer_keypair, blockhash);

assert_eq!(bincode::serialized_size(&tx).unwrap(), 179);
Expand All @@ -161,7 +161,7 @@ fn transaction_size_large() {

let seed = 42;
let random_strings = BenchHelper::generate_random_strings(1, Some(seed), 240);
let rand_string = random_strings.get(0).unwrap();
let rand_string = random_strings.first().unwrap();
let tx = BenchHelper::create_memo_tx_large(rand_string, &payer_keypair, blockhash);

assert_eq!(bincode::serialized_size(&tx).unwrap(), 1186);
Expand Down
1 change: 0 additions & 1 deletion stake_vote/src/leader_schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ pub fn calculate_leader_schedule(
.aggregate(|acc, _node_pubkey, stake| Some(acc.unwrap_or_default() + stake));
let mut stakes: Vec<(Pubkey, u64)> = stakes_map
.into_iter()
.map(|(key, stake)| (key, stake))
.collect();

let mut seed = [0u8; 32];
Expand Down

0 comments on commit 1923cb9

Please sign in to comment.