From ea8c525e1f93a10d43882e77d47f2abb27381347 Mon Sep 17 00:00:00 2001 From: Alain Emilia Anna Zscheile Date: Sat, 28 Sep 2024 21:22:59 +0200 Subject: [PATCH] egui/top: get rid of unnecessary .clone()s --- src/bin/topola-egui/top.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/topola-egui/top.rs b/src/bin/topola-egui/top.rs index e375e79..2e0b930 100644 --- a/src/bin/topola-egui/top.rs +++ b/src/bin/topola-egui/top.rs @@ -234,7 +234,7 @@ impl Top { } else if export_session.consume_key_triggered(ctx, ui) { if let Some(design) = maybe_design { if let Some(invoker) = - arc_mutex_maybe_invoker.clone().lock().unwrap().as_ref() + arc_mutex_maybe_invoker.lock().unwrap().as_ref() { let ctx = ui.ctx().clone(); let board = invoker.autorouter().board(); @@ -274,7 +274,7 @@ impl Top { } }); } else if export_history.consume_key_triggered(ctx, ui) { - if let Some(invoker) = arc_mutex_maybe_invoker.clone().lock().unwrap().as_ref() + if let Some(invoker) = arc_mutex_maybe_invoker.lock().unwrap().as_ref() { let ctx = ctx.clone(); let task = rfd::AsyncFileDialog::new().save_file();