From c7f9a3ff98f8cce981c567da37e6b7c1670ff7c6 Mon Sep 17 00:00:00 2001 From: Jakub Wieczorek Date: Sun, 3 Nov 2024 17:23:54 +0100 Subject: [PATCH] Clippy. --- src/worker/listener.rs | 2 ++ src/worker/mod.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/worker/listener.rs b/src/worker/listener.rs index de54e9e..015e178 100644 --- a/src/worker/listener.rs +++ b/src/worker/listener.rs @@ -48,6 +48,7 @@ struct ActionInput { parents: HashMap, } +#[allow(clippy::too_many_arguments)] async fn handle_start_step_run( action_function_task_join_set: &mut tokio::task::JoinSet>, abort_handles: &mut HashMap, @@ -160,6 +161,7 @@ async fn handle_cancel_step_run( Ok(()) } +#[allow(clippy::too_many_arguments)] pub(crate) async fn run( action_function_task_join_set: &mut tokio::task::JoinSet>, mut dispatcher: DispatcherClient< diff --git a/src/worker/mod.rs b/src/worker/mod.rs index 671a56f..9702c63 100644 --- a/src/worker/mod.rs +++ b/src/worker/mod.rs @@ -93,9 +93,9 @@ struct TokenClaims { grpc_broadcast_address: String, } -fn construct_endpoint_url<'a>( +fn construct_endpoint_url( tls_strategy: ClientTlStrategy, - host_port_in_environment: Option<&'a str>, + host_port_in_environment: Option<&str>, token: &secrecy::SecretString, ) -> crate::InternalResult { use secrecy::ExposeSecret;