diff --git a/src/context/app_context.rs b/src/context/app_context.rs index e671cf179..ab5e39954 100644 --- a/src/context/app_context.rs +++ b/src/context/app_context.rs @@ -17,7 +17,6 @@ use crate::ui::views; use crate::ui::PreviewArea; use crate::Args; - pub struct AppContext { pub quit: QuitAction, // event loop querying diff --git a/src/context/worker_context.rs b/src/context/worker_context.rs index 1de4b0d0d..0ef53c08d 100644 --- a/src/context/worker_context.rs +++ b/src/context/worker_context.rs @@ -76,9 +76,7 @@ impl WorkerContext { let handle = task::spawn(async move { let (wtx, wrx) = mpsc::channel(); // start worker - let worker_handle = task::spawn(async move { - worker.start(wtx) - }); + let worker_handle = task::spawn(async move { worker.start(wtx) }); // relay worker info to event loop while let Ok(progress) = wrx.recv() { let _ = tx.send(AppEvent::FileOperationProgress(progress));