Is there a lint to prevent underscore prefixed bindings (_foo
) for must_use types?
#14270
Unanswered
frederikrothenberger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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