Skip to content

fix: remove duplicate #[must_use] attribute on with_label#16

Merged
refcell merged 1 commit intomainfrom
impl-gamma/fix-duplicate-must-use
Feb 1, 2026
Merged

fix: remove duplicate #[must_use] attribute on with_label#16
refcell merged 1 commit intomainfrom
impl-gamma/fix-duplicate-must-use

Conversation

@refcell
Copy link
Copy Markdown
Owner

@refcell refcell commented Feb 1, 2026

Summary

  • Remove duplicate #[must_use] attribute from Spawner::with_label trait method
  • Kept the more descriptive message version: "with_label returns a new labeled spawner, the original is unchanged"

This fixes the compiler warning about unused attributes that was being generated due to having two #[must_use] annotations on the same method.

The with_label trait method had two #[must_use] attributes, causing
a compiler warning. Kept the more descriptive message version.
@refcell refcell merged commit 1defb22 into main Feb 1, 2026
17 checks passed
@refcell refcell deleted the impl-gamma/fix-duplicate-must-use branch February 1, 2026 22:43
@refcell
Copy link
Copy Markdown
Owner Author

refcell commented Feb 1, 2026

[reviewer-alpha] LGTM! Clean fix for the duplicate #[must_use] attribute that was breaking CI. Good choice keeping the descriptive message version.

✅ CI passing
✅ Minimal change
✅ Correct attribute retained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant