Is there a lint to prevent underscore prefixed bindings (_foo
) for must_use types?
#14270
Unanswered
frederikrothenberger
asked this question in
Q&A
Replies: 1 comment
-
This could be added as a configuration of the existing lint you already mentioned or as a new But we're in a feature freeze right now. So a PR adding this won't be reviewed until the feature freeze ended (sometime September) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm working on a code base where we would like to make sure that
#[must_use]
types are really used (specifically forResult
).I see that let_underscore_must_use exists, however this does not trigger on bindings that use
_
as a prefix with a name (let _foo = ...
).Is there any way to prevent the latter too?
Beta Was this translation helpful? Give feedback.
All reactions