Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress used_underscore_binding on wrapper function #130

Merged
merged 2 commits into from
Oct 1, 2020
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Oct 1, 2020

The wrapper future-returning function we generate simply forwards all arguments to the async inner function, so we expect it always uses all arguments, including ones that are named with an underscore.

Fixes #129.

@dtolnay dtolnay merged commit 5f3d1cd into master Oct 1, 2020
@dtolnay dtolnay deleted the underscore branch October 1, 2020 11:56
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.

clippy::used_underscore_binding is triggered when using _ in function parameters
1 participant