Skip to content

Commit 1defb22

Browse files
authored
fix: remove duplicate #[must_use] attribute on with_label (#16)
The with_label trait method had two #[must_use] attributes, causing a compiler warning. Kept the more descriptive message version.
1 parent c3fd9f4 commit 1defb22

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

crates/traits/src/runtime.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ pub trait Spawner: Clone + Send + Sync + 'static {
5656
T: Send + 'static;
5757

5858
/// Spawn with a label for metrics/tracing.
59-
#[must_use]
6059
#[must_use = "with_label returns a new labeled spawner, the original is unchanged"]
6160
fn with_label(&self, label: &str) -> Self;
6261

0 commit comments

Comments
 (0)