You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of this lint, #[must_use] is empty, #[must_use = "message"] is not.
The lint only warns on the former since must_use with a message can add additional context for that specific function that the type's #[must_use] message does not have, in which case it would not be redundant.
Maybe it could say "this function has a #[must_use] attribute with no message, but returns a type already marked as #[must_use]"
Summary
The double_must_use message is:
However, I don't know what an 'empty attribute' is. I tried googling for the term, and nothing came up.
Reproducer
No response
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: