Pacify clippy

This commit is contained in:
Greg Fitzgerald 2018-08-09 16:20:13 -06:00
parent b801ca477d
commit 5216a723b1
1 changed files with 6 additions and 6 deletions

View File

@ -126,12 +126,12 @@ pub struct BroadcastStage {
impl BroadcastStage {
fn run(
sock: UdpSocket,
crdt: Arc<RwLock<Crdt>>,
window: SharedWindow,
sock: &UdpSocket,
crdt: &Arc<RwLock<Crdt>>,
window: &SharedWindow,
entry_height: u64,
recycler: BlobRecycler,
receiver: BlobReceiver,
recycler: &BlobRecycler,
receiver: &BlobReceiver,
) {
let mut transmit_index = WindowIndex {
data: entry_height,
@ -184,7 +184,7 @@ impl BroadcastStage {
let thread_hdl = Builder::new()
.name("solana-broadcaster".to_string())
.spawn(move || {
Self::run(sock, crdt, window, entry_height, recycler, receiver);
Self::run(&sock, &crdt, &window, entry_height, &recycler, &receiver);
})
.unwrap();