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

Remove redundant closure #2346

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

stmcginnis
Copy link
Contributor

Issue number:

Closes #2345

Description of changes:

Clippy warnings about a redundant closure. The closure just makes a call
to a function that would take the passed argument anyway, so we should
remove the closure and just provide the function directly.

Testing done:

Built with changes and verified rust was happy.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Copy link
Contributor

@zmrow zmrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪶

etungsten
etungsten previously approved these changes Aug 15, 2022
@etungsten etungsten dismissed their stale review August 15, 2022 16:19

actions failure

Clippy warnings about a redundant closure. The closure just makes a call
to a function that would take the passed argument anyway, so we should
remove the closure and just provide the function directly.

Signed-off-by: Sean McGinnis <[email protected]>
@etungsten etungsten merged commit e79d47b into bottlerocket-os:develop Aug 15, 2022
@stmcginnis stmcginnis deleted the redundant-closure branch August 15, 2022 18:50
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.

CI jobs failing with "error: redundant closure"
4 participants