From 8cf7af02198bf3c05316f62a642024a8f1d6fcfb Mon Sep 17 00:00:00 2001 From: Ada Bohm Date: Thu, 9 Jul 2026 16:30:43 +0200 Subject: [PATCH] Fixed warnings in clippy 1.97 --- crates/hyperqueue/src/client/commands/journal/report.rs | 2 +- crates/hyperqueue/src/client/commands/wait.rs | 2 +- crates/hyperqueue/src/client/output/cli.rs | 4 ++-- crates/hyperqueue/src/server/state.rs | 2 +- crates/tako/src/internal/server/rpc.rs | 1 - crates/tako/src/internal/server/task.rs | 2 +- crates/tako/src/internal/worker/state.rs | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/hyperqueue/src/client/commands/journal/report.rs b/crates/hyperqueue/src/client/commands/journal/report.rs index 2fc8c072c..e0195106a 100644 --- a/crates/hyperqueue/src/client/commands/journal/report.rs +++ b/crates/hyperqueue/src/client/commands/journal/report.rs @@ -529,7 +529,7 @@ fn create_report(jstats: &JournalStats) -> String { y: &trace.value, name: format!( "{name} alloc on {wres}", - wres = &wres_str, + wres = wres_str, name = jstats.get_resource_name(*rid) ), r#type: "scatter", diff --git a/crates/hyperqueue/src/client/commands/wait.rs b/crates/hyperqueue/src/client/commands/wait.rs index 429354a07..eac3a0e0a 100644 --- a/crates/hyperqueue/src/client/commands/wait.rs +++ b/crates/hyperqueue/src/client/commands/wait.rs @@ -215,7 +215,7 @@ pub async fn wait_for_jobs_with_progress( | EventPayload::TaskNotify(..) => {} }, _ => { - log::warn!("Unexpected message from server: {:?}", &msg); + log::warn!("Unexpected message from server: {:?}", msg); } } } else { diff --git a/crates/hyperqueue/src/client/output/cli.rs b/crates/hyperqueue/src/client/output/cli.rs index 47ff47f71..8496e27f4 100644 --- a/crates/hyperqueue/src/client/output/cli.rs +++ b/crates/hyperqueue/src/client/output/cli.rs @@ -1636,7 +1636,7 @@ fn resources_full_describe(resources: &ResourceDescriptor) -> String { result, "{}{}: {}", if first { "" } else { "\n" }, - &descriptor.name, + descriptor.name, format_descriptor_kind(&descriptor.kind), ) .unwrap(); @@ -1721,7 +1721,7 @@ fn resources_summary(resources: &ResourceDescriptor, multiline: bool) -> String } else { "; " }, - &descriptor.name, + descriptor.name, if multiline { ":" } else { "" }, special_format(descriptor).unwrap_or_else(|| resource_summary_kind(&descriptor.kind)), if coupled.contains(&(i as u8)) { diff --git a/crates/hyperqueue/src/server/state.rs b/crates/hyperqueue/src/server/state.rs index bdc718ec1..ade274b72 100644 --- a/crates/hyperqueue/src/server/state.rs +++ b/crates/hyperqueue/src/server/state.rs @@ -124,7 +124,7 @@ impl State { if !aborted_tasks.is_empty() { log::debug!( "Tasks {:?} aborted because of task dependency fails", - &aborted_tasks + aborted_tasks ); } diff --git a/crates/tako/src/internal/server/rpc.rs b/crates/tako/src/internal/server/rpc.rs index 14911e2b5..9dc4b057d 100644 --- a/crates/tako/src/internal/server/rpc.rs +++ b/crates/tako/src/internal/server/rpc.rs @@ -208,7 +208,6 @@ async fn worker_rpc_loop( let CoreSplitMut { task_map: _, worker_map, - request_map: _, .. } = core.split_mut(); let worker = worker_map.get_worker_mut(worker_id); diff --git a/crates/tako/src/internal/server/task.rs b/crates/tako/src/internal/server/task.rs index b979e670c..35ccd9fc2 100644 --- a/crates/tako/src/internal/server/task.rs +++ b/crates/tako/src/internal/server/task.rs @@ -156,7 +156,7 @@ impl Task { entry: Option, configuration: Rc, ) -> Self { - log::debug!("New task rs={} {:?} {:?}", id, resource_rq_id, &task_deps,); + log::debug!("New task rs={} {:?} {:?}", id, resource_rq_id, task_deps,); Self { id, diff --git a/crates/tako/src/internal/worker/state.rs b/crates/tako/src/internal/worker/state.rs index 0ad074949..d689e3c8c 100644 --- a/crates/tako/src/internal/worker/state.rs +++ b/crates/tako/src/internal/worker/state.rs @@ -179,7 +179,7 @@ impl WorkerState { log::debug!( "New worker={} announced at {}", other_worker.worker_id, - &other_worker.address + other_worker.address ); assert_ne!(self.worker_id, other_worker.worker_id); // We should not receive message about ourselves assert!(