Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrrnn committed Aug 9, 2024
1 parent 4f93215 commit d91e8f9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src-tauri/src/xmrig_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ impl XmrigAdapter {
process_instance.handle = Some(tokio::spawn(async move {
// TODO: Ensure version string is not malicious
let version =
Self::ensure_latest(cache_dir.clone(), force_download, progress_tracker)
.await?;
Self::ensure_latest(cache_dir.clone(), force_download, progress_tracker).await?;
let xmrig_dir = cache_dir
.join("xmrig")
.join(&version)
Expand Down Expand Up @@ -116,11 +115,7 @@ impl XmrigAdapter {
Ok(())
}));

Ok((
rx,
process_instance,
client,
))
Ok((rx, process_instance, client))
}

pub async fn ensure_latest(
Expand Down

0 comments on commit d91e8f9

Please sign in to comment.