fixed cargo warns
Continuous integration / build (push) Failing after 1m48s

This commit is contained in:
2025-08-09 22:42:42 +01:00
parent cc7eb3e7fb
commit c21819e786
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ impl ProjectSettings {
self.open = true;
}
pub fn close(&mut self) {
pub fn _close(&mut self) {
self.open = false;
}
}
+5 -1
View File
@@ -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<String>,
}
#[derive(Deserialize, Debug)]
struct Delta {
#[serde(default)]
#[allow(unused)]
role: Option<String>,
#[serde(default)]
content: Option<String>,
@@ -485,10 +487,12 @@ struct Message {
#[derive(Deserialize, Debug)]
struct ChatResponse {
#[allow(unused)]
choices: Vec<Choice>,
}
#[derive(Deserialize, Debug)]
struct Choice {
#[allow(unused)]
message: Message,
}