Clippy cleanup for all targets and nighly rust (also support 1.44.0) (#10445)
* address warnings from 'rustup run beta cargo clippy --workspace' minor refactoring in: - cli/src/cli.rs - cli/src/offline/blockhash_query.rs - logger/src/lib.rs - runtime/src/accounts_db.rs expect some performance improvement AccountsDB::clean_accounts() * address warnings from 'rustup run beta cargo clippy --workspace --tests' * address warnings from 'rustup run nightly cargo clippy --workspace --all-targets' * rustfmt * fix warning stragglers * properly fix clippy warnings test_vote_subscribe() replace ref-to-arc with ref parameters where arc not cloned * Remove lock around JsonRpcRequestProcessor (#10417) automerge * make ancestors parameter optional to avoid forcing construction of empty hash maps Co-authored-by: Greg Fitzgerald <greg@solana.com>
This commit is contained in:
committed by
GitHub
parent
fa3a6c5584
commit
e23340d89e
@ -177,7 +177,7 @@ fn sort_data_coding_into_fec_sets(
|
||||
data_slot_and_index.insert(key);
|
||||
let fec_entry = fec_data
|
||||
.entry(shred.common_header.fec_set_index)
|
||||
.or_insert_with(|| vec![]);
|
||||
.or_insert_with(Vec::new);
|
||||
fec_entry.push(shred);
|
||||
}
|
||||
for shred in coding_shreds {
|
||||
@ -188,7 +188,7 @@ fn sort_data_coding_into_fec_sets(
|
||||
coding_slot_and_index.insert(key);
|
||||
let fec_entry = fec_coding
|
||||
.entry(shred.common_header.fec_set_index)
|
||||
.or_insert_with(|| vec![]);
|
||||
.or_insert_with(Vec::new);
|
||||
fec_entry.push(shred);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user