#[instrument] prevents unused argument lint #3464
Unanswered
JosiahParry
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
Uh oh!
There was an error while loading. Please reload this page.
-
When adding
#[instrument]macro to a function or method, it automatically makes use of every argument (makes sense). However, this prevents a lint for unused argument:With macro

without macro:

I understand this is a natural consequence of using the Debug representation of each argument.
Is this an expected consequence of the macro and a tradeoff we're making?
Beta Was this translation helpful? Give feedback.
All reactions