Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit bbc8cbe

Browse files
committed
Remove unneeded clone()
1 parent fb1e10e commit bbc8cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cairo_threads.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn build_ui(application: &gtk::Application) {
129129
gtk::timeout_add(100, move || {
130130
while let Ok((thread_num, mut image)) = ready_rx.try_recv() {
131131
let &mut (ref mut images, ref origins, ref workers) = &mut *cell.borrow_mut();
132-
let tx = workers[thread_num].clone();
132+
let tx = &workers[thread_num];
133133
mem::swap(&mut images[thread_num], &mut image);
134134
let _ = tx.send(image);
135135
area.queue_draw_area(origins[thread_num].0, origins[thread_num].1, width, height);

0 commit comments

Comments
 (0)