From c21819e786651d3a9713b00289d3f47106db798c Mon Sep 17 00:00:00 2001 From: zxq5 Date: Sat, 9 Aug 2025 22:42:42 +0100 Subject: [PATCH] fixed cargo warns --- src/editors/settings_editor.rs | 2 +- src/llm_integration/content_llm.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/editors/settings_editor.rs b/src/editors/settings_editor.rs index 765df25..6434ac3 100644 --- a/src/editors/settings_editor.rs +++ b/src/editors/settings_editor.rs @@ -223,7 +223,7 @@ impl ProjectSettings { self.open = true; } - pub fn close(&mut self) { + pub fn _close(&mut self) { self.open = false; } } diff --git a/src/llm_integration/content_llm.rs b/src/llm_integration/content_llm.rs index 98f0add..70c9d00 100644 --- a/src/llm_integration/content_llm.rs +++ b/src/llm_integration/content_llm.rs @@ -55,7 +55,7 @@ impl ContentAI { }; } - fn ui_summarise(&mut self, ui: &mut egui::Ui, project: &mut ProjectSettings) { + fn ui_summarise(&mut self, ui: &mut egui::Ui, _project: &mut ProjectSettings) { if let ContentAI::Summarise { content, result, @@ -466,12 +466,14 @@ struct StreamingChatResponse { struct StreamingChoice { delta: Delta, #[serde(default)] + #[allow(unused)] finish_reason: Option, } #[derive(Deserialize, Debug)] struct Delta { #[serde(default)] + #[allow(unused)] role: Option, #[serde(default)] content: Option, @@ -485,10 +487,12 @@ struct Message { #[derive(Deserialize, Debug)] struct ChatResponse { + #[allow(unused)] choices: Vec, } #[derive(Deserialize, Debug)] struct Choice { + #[allow(unused)] message: Message, }