From 3899f94c74fdb38159ace552751b7d22878f0309 Mon Sep 17 00:00:00 2001 From: glitchySid Date: Sat, 10 Jan 2026 22:28:49 +0530 Subject: [PATCH] fixed clippy and formatting issue. --- src/gemini/client.rs | 11 +++++------ tests/integration_online.rs | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gemini/client.rs b/src/gemini/client.rs index ba27a81..e7ef9ed 100644 --- a/src/gemini/client.rs +++ b/src/gemini/client.rs @@ -94,12 +94,11 @@ impl GeminiClient { let url = self.build_url(); // Check cache first - if let Some(ref mut c) = cache { - if let Some(bp) = base_path { - if let Some(cached) = c.check_cache(&filenames, bp) { - return Ok(cached); - } - } + if let Some(ref mut c) = cache + && let Some(bp) = base_path + && let Some(cached) = c.check_cache(&filenames, bp) + { + return Ok(cached); } let prompt = PromptBuilder::new(&filenames).build_categorization_prompt(&self.categories); diff --git a/tests/integration_online.rs b/tests/integration_online.rs index 19b3399..10bdd28 100644 --- a/tests/integration_online.rs +++ b/tests/integration_online.rs @@ -11,7 +11,7 @@ //! - File reading for deep inspection //! - Integration between components -use noentropy::files::{is_text_file, read_file_sample, FileBatch}; +use noentropy::files::{FileBatch, is_text_file, read_file_sample}; use noentropy::models::{FileCategory, OrganizationPlan}; use noentropy::storage::{Cache, UndoLog}; use std::collections::HashMap;