Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(clippy): remove redundant #[must_use] on write_background_output (#9111)
James Damf33415cbd16b
diff --git a/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/handlers.rs b/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/handlers.rsindex 5e57cc5ae..5a5c049da 100644--- a/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/handlers.rs+++ b/src-tauri/plugins/tauri-plugin-agent-tools/src/tools/handlers.rs@@ -1079,7 +1079,6 @@ fn next_background_id() -> u64 {/// the path to the model only on `true`: on ENOSPC, or a leftover `.part` from/// an earlier crash, the promise "its output is in {path}" would otherwise name/// a file that is absent or stale.-#[must_use]fn write_background_output(path: &Path, content: &str) -> bool {use std::io::Write;let part = path.with_extension("part");diff --git a/src-tauri/src/core/agent/loop.rs b/src-tauri/src/core/agent/loop.rsindex a34500342..5e482578a 100644--- a/src-tauri/src/core/agent/loop.rs+++ b/src-tauri/src/core/agent/loop.rs@@ -202,6 +202,7 @@ pub(crate) struct OrchestrationArgs {}#[async_trait]+#[allow(clippy::double_must_use)] // async_trait generates #[must_use] on Pin<Box<dyn Future>> which is already must_usepub(crate) trait ModelInvoker: Send + Sync {async fn invoke(&self,@@ -288,6 +289,7 @@ pub(crate) struct BackgroundNotice {}#[async_trait]+#[allow(clippy::double_must_use)] // async_trait generates #[must_use] on Pin<Box<dyn Future>> which is already must_usepub(crate) trait ToolInvoker: Send + Sync {async fn invoke(&self, tool_calls: &[serde_json::Value]) -> Result<Vec<ToolOutcome>, String>;