From f3ff5e900189e8a21a553fd0bce7b4a8c115224c Mon Sep 17 00:00:00 2001 From: Jeff Zhao Date: Tue, 29 Aug 2023 22:28:12 -0400 Subject: [PATCH] cargo fmt --- src/context/app_context.rs | 1 - src/context/worker_context.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) 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));