clippy errors

This commit is contained in:
Pankaj Garg 2019-03-09 05:21:35 +00:00
parent 069ce71256
commit fe1f67ea9a
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ impl BankingStage {
fn forward_unprocessed_packets(
socket: &std::net::UdpSocket,
tpu: &std::net::SocketAddr,
unprocessed_packets: &UnprocessedPackets,
unprocessed_packets: &[(SharedPackets, usize)],
) -> std::io::Result<()> {
for (packets, start_index) in unprocessed_packets {
let packets = packets.read().unwrap();
@ -92,7 +92,7 @@ impl BankingStage {
socket: &std::net::UdpSocket,
poh_recorder: &Arc<Mutex<PohRecorder>>,
cluster_info: &Arc<RwLock<ClusterInfo>>,
buffered_packets: &UnprocessedPackets,
buffered_packets: &[(SharedPackets, usize)],
) -> bool {
let (leader, my_id) = {
let rcluster_info = cluster_info.read().unwrap();