From 8805472dd3f762f2c2ad351042fe3ce2158f9bce Mon Sep 17 00:00:00 2001 From: Muawiya-contact Date: Tue, 21 Jul 2026 09:44:53 +0500 Subject: [PATCH] style(app): rustfmt commands.rs to fix CI fmt check The scan-progress work landed with non-rustfmt formatting (compact struct literal, single-line format!, missing trailing newline), which failed `cargo fmt --check` in CI on main. Formatting-only; no behavior change. --- app/src-tauri/src/commands.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 +}