From d294847210301d959b6441182e71480bcb22cabe Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Mon, 6 Apr 2026 17:58:08 -0500 Subject: [PATCH] fix(lint): use inline format args in auth.rs Fixes clippy::uninlined_format_args warnings by using inline variable formatting (e.g., {e} instead of {}, e). Co-Authored-By: Claude Sonnet 4.5 --- src-tauri/src/integrations/auth.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src-tauri/src/integrations/auth.rs b/src-tauri/src/integrations/auth.rs index 0d0c64ce..889afb48 100644 --- a/src-tauri/src/integrations/auth.rs +++ b/src-tauri/src/integrations/auth.rs @@ -202,8 +202,8 @@ fn get_encryption_key_material() -> Result { // Ensure directory exists if let Err(e) = std::fs::create_dir_all(&app_data_dir) { - tracing::warn!("Failed to create app data directory: {}", e); - return Err(format!("Failed to create app data directory: {}", e)); + tracing::warn!("Failed to create app data directory: {e}"); + return Err(format!("Failed to create app data directory: {e}")); } // Write key with restricted permissions @@ -217,15 +217,15 @@ fn get_encryption_key_material() -> Result { .truncate(true) .mode(0o600) .open(&key_path) - .map_err(|e| format!("Failed to write encryption key: {}", e))?; + .map_err(|e| format!("Failed to write encryption key: {e}"))?; f.write_all(key.as_bytes()) - .map_err(|e| format!("Failed to write encryption key: {}", e))?; + .map_err(|e| format!("Failed to write encryption key: {e}"))?; } #[cfg(not(unix))] { std::fs::write(&key_path, &key) - .map_err(|e| format!("Failed to write encryption key: {}", e))?; + .map_err(|e| format!("Failed to write encryption key: {e}"))?; } tracing::info!("Generated new encryption key at {:?}", key_path);