From b185e38724e4838074f83b985c948f378d53f0ae Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 00:27:53 +0000 Subject: [PATCH] fix: apply cargo clippy fixes - Replace closure with function pointer: .map(|m| Arc::new(m)) -> .map(Arc::new) - Suppress too_many_arguments warning on spawn_download_task Co-Authored-By: unknown <> --- crates/transcribe-proxy/src/routes/streaming/hyprnote.rs | 2 +- plugins/local-stt/src/ext.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/transcribe-proxy/src/routes/streaming/hyprnote.rs b/crates/transcribe-proxy/src/routes/streaming/hyprnote.rs index 9969c474d8..890005d1aa 100644 --- a/crates/transcribe-proxy/src/routes/streaming/hyprnote.rs +++ b/crates/transcribe-proxy/src/routes/streaming/hyprnote.rs @@ -187,7 +187,7 @@ fn build_channel_split_proxy( request = request.with_header(name, value); } - let initial_msg: Option = initial_message.map(|m| Arc::new(m)); + let initial_msg: Option = initial_message.map(Arc::new); let response_transformer: Option = Some(Arc::new(build_response_transformer(provider))); let on_close = build_on_close_callback(config, provider, &analytics_ctx); diff --git a/plugins/local-stt/src/ext.rs b/plugins/local-stt/src/ext.rs index c81db62d99..ba57eff503 100644 --- a/plugins/local-stt/src/ext.rs +++ b/plugins/local-stt/src/ext.rs @@ -599,6 +599,7 @@ async fn external_health() -> Option { } } +#[allow(clippy::too_many_arguments)] fn spawn_download_task( url: String, dest_path: PathBuf,