diff --git a/app/src-tauri/src/commands.rs b/app/src-tauri/src/commands.rs index 02487d7..6344a1b 100644 --- a/app/src-tauri/src/commands.rs +++ b/app/src-tauri/src/commands.rs @@ -44,7 +44,10 @@ pub async fn start_scan(window: Window, roots: Vec) -> Result(report::build(entries, &RulesDb::embedded())) }) @@ -76,10 +79,13 @@ pub async fn quarantine_finding( tauri::async_runtime::spawn_blocking(move || { let (_, verdict, _) = RulesDb::embedded().classify(&path); if matches!(verdict, Verdict::Protected | Verdict::Risky) { - return Err(format!("{} is classified {verdict:?}; action refused", path.display())); + return Err(format!( + "{} is classified {verdict:?}; action refused", + path.display() + )); } actions::quarantine(&path, verdict, &quarantine_dir).map_err(|e| e.to_string()) }) .await .map_err(|e| e.to_string())? -} \ No newline at end of file +}