From 600fc3b876f0217b370ab84f6854c847ada46c69 Mon Sep 17 00:00:00 2001 From: Razvan Dimescu Date: Wed, 8 Apr 2026 14:14:25 +0300 Subject: [PATCH] style: rustfmt fixes for trust_ca_linux helpers Co-Authored-By: Claude Opus 4.6 (1M context) --- src/system_dns.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/system_dns.rs b/src/system_dns.rs index 141e562..fc02393 100644 --- a/src/system_dns.rs +++ b/src/system_dns.rs @@ -1421,8 +1421,7 @@ fn trust_ca_linux(ca_path: &std::path::Path) -> Result<(), String> { })?; let dest = std::path::Path::new(store.anchor_dir).join(store.anchor_file); - std::fs::copy(ca_path, &dest) - .map_err(|e| format!("copy CA to {}: {}", dest.display(), e))?; + std::fs::copy(ca_path, &dest).map_err(|e| format!("copy CA to {}: {}", dest.display(), e))?; run_refresh(store.name, store.refresh_install)?; eprintln!(" Trusted Numa CA system-wide ({})", store.name); @@ -1439,10 +1438,7 @@ fn untrust_ca_linux() -> Result<(), String> { match std::fs::remove_file(&dest) { Ok(()) => { let _ = run_refresh(store.name, store.refresh_uninstall); - eprintln!( - " Removed Numa CA from system trust store ({})", - store.name - ); + eprintln!(" Removed Numa CA from system trust store ({})", store.name); } Err(e) if e.kind() == std::io::ErrorKind::NotFound => {} Err(_) => {} // best-effort uninstall