Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Aug 30, 2023
1 parent 5633c02 commit f3ff5e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/context/app_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::ui::views;
use crate::ui::PreviewArea;
use crate::Args;


pub struct AppContext {
pub quit: QuitAction,
// event loop querying
Expand Down
4 changes: 1 addition & 3 deletions src/context/worker_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f3ff5e9

Please sign in to comment.