Skip to content

Commit 910e7f2

Browse files
committed
fixed clippy errors
1 parent a98db6f commit 910e7f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/postgres_client/postgres_client_transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ pub(crate) mod tests {
686686
for i in 0..compiled_instruction.data.len() {
687687
assert_eq!(
688688
compiled_instruction.data[i],
689-
db_compiled_instruction.data[i] as u8
689+
db_compiled_instruction.data[i]
690690
)
691691
}
692692
}

tests/test_postgres_plugin.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ use {
4141
},
4242
solana_sdk::{
4343
client::SyncClient, clock::Slot, commitment_config::CommitmentConfig,
44-
epoch_schedule::MINIMUM_SLOTS_PER_EPOCH, hash::Hash,
44+
epoch_schedule::MINIMUM_SLOTS_PER_EPOCH,
4545
},
4646
solana_streamer::socket::SocketAddrSpace,
4747
std::{
@@ -196,7 +196,7 @@ fn setup_snapshot_validator_config(
196196

197197
// Create the validator config
198198
let validator_config = ValidatorConfig {
199-
snapshot_config: snapshot_config,
199+
snapshot_config,
200200
account_paths: account_storage_paths,
201201
accounts_hash_interval_slots: snapshot_interval_slots,
202202
geyser_plugin_config_files,
@@ -224,8 +224,8 @@ fn test_local_cluster_start_and_exit_with_config(socket_addr_space: SocketAddrSp
224224
node_stakes: vec![3; NUM_NODES],
225225
cluster_lamports: 100,
226226
ticks_per_slot: 8,
227-
slots_per_epoch: MINIMUM_SLOTS_PER_EPOCH as u64,
228-
stakers_slot_offset: MINIMUM_SLOTS_PER_EPOCH as u64,
227+
slots_per_epoch: MINIMUM_SLOTS_PER_EPOCH,
228+
stakers_slot_offset: MINIMUM_SLOTS_PER_EPOCH,
229229
..ClusterConfig::default()
230230
};
231231
let cluster = LocalCluster::new(&mut config, socket_addr_space);

0 commit comments

Comments
 (0)