style: explicitly use Arc::clone

This commit is contained in:
Matthew Van Schellebeeck
2022-10-16 08:18:56 -04:00
parent b3322e36ae
commit ccd73c0a81
2 changed files with 3 additions and 3 deletions

View File

@@ -26,8 +26,8 @@ impl Queue {
fn send_tx(q: Queue, tx: mpsc::Sender<u32>) -> () {
let qc = Arc::new(q);
let qc1 = qc.clone();
let qc2 = qc.clone();
let qc1 = Arc::clone(&qc);
let qc2 = Arc::clone(&qc);
thread::spawn(move || {
for val in &qc1.first_half {