Skip to content

Commit 30c5659

Browse files
committed
Remove unused import in commands.rs
1 parent c1a4e75 commit 30c5659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src-tauri/src/commands.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use std::env::temp_dir;
21
use std::io::Cursor;
32
use std::path::Path;
43

54
use reqwest::Client;
65
use tauri::api::dialog::blocking::FileDialogBuilder;
76
use tokio::fs;
7+
use tokio::fs::create_dir;
88
use crate::aggregator::aggregate;
99
use crate::analyzer::analyze;
1010

@@ -51,6 +51,7 @@ pub async fn process_data(
5151
) -> Result<(), String> {
5252
let temp_dir = tempfile::tempdir().map_err(|e| e.to_string())?;
5353
let data_dir = temp_dir.path().join("data");
54+
create_dir(&data_dir).await.map_err(|e| e.to_string())?;
5455
dbg!(temp_dir.path());
5556
let dependencies_dir = app_handle
5657
.path_resolver()

0 commit comments

Comments
 (0)