diff --git a/src-tauri/src/ai/openai.rs b/src-tauri/src/ai/openai.rs index 809e78cb..73fc12b4 100644 --- a/src-tauri/src/ai/openai.rs +++ b/src-tauri/src/ai/openai.rs @@ -149,7 +149,10 @@ impl OpenAiProvider { if !resp.status().is_success() { let status = resp.status(); - let text = resp.text().await.unwrap_or_else(|_| "unable to read response body".to_string()); + let text = resp + .text() + .await + .unwrap_or_else(|_| "unable to read response body".to_string()); tracing::error!(url = %url, status = %status, response = %text, "OpenAI API error response"); anyhow::bail!("OpenAI API error {status}: {text}"); } diff --git a/src-tauri/src/integrations/auth.rs b/src-tauri/src/integrations/auth.rs index e30bc2af..c91048b4 100644 --- a/src-tauri/src/integrations/auth.rs +++ b/src-tauri/src/integrations/auth.rs @@ -507,7 +507,7 @@ mod tests { // This avoids env var conflicts with parallel tests let test_key = "test-key-encrypt-decrypt-roundtrip-12345"; let key_material = derive_aes_key_from_str(test_key).unwrap(); - + let original = "my-secret-token-12345"; let encrypted = encrypt_token_with_key(original, &key_material).unwrap(); let decrypted = decrypt_token_with_key(&encrypted, &key_material).unwrap();