From 1f5d1ac820b2af46b0efdf789baff57ba6575a0e Mon Sep 17 00:00:00 2001 From: Andreas Bigger Date: Sun, 1 Feb 2026 17:32:07 -0500 Subject: [PATCH] fix: remove duplicate #[must_use] attribute on with_label The with_label trait method had two #[must_use] attributes, causing a compiler warning. Kept the more descriptive message version. --- crates/traits/src/runtime.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/traits/src/runtime.rs b/crates/traits/src/runtime.rs index 9bc4c89..d14537d 100644 --- a/crates/traits/src/runtime.rs +++ b/crates/traits/src/runtime.rs @@ -56,7 +56,6 @@ pub trait Spawner: Clone + Send + Sync + 'static { T: Send + 'static; /// Spawn with a label for metrics/tracing. - #[must_use] #[must_use = "with_label returns a new labeled spawner, the original is unchanged"] fn with_label(&self, label: &str) -> Self;