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

chore: fixes clippy redundant_closure_call error inside macros #2642

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

RomarQ
Copy link
Contributor

@RomarQ RomarQ commented Feb 12, 2024

Fixes pipeline.

Clippy reports redundant_closure_call in mock_account macro. It could be implemented differently as we can see in the macro expansions bellow, but is easier and readable as it currently is.

image
image

The error can be ignored: rust-lang/rust-clippy#1553

What does it do?

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@RomarQ RomarQ added B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited) labels Feb 12, 2024
@RomarQ RomarQ self-assigned this Feb 12, 2024
Copy link
Contributor

Coverage Report

@@                  Coverage Diff                   @@
##           master   rq/fix-clippy-issue     +/-   ##
======================================================
  Coverage   80.91%                80.91%   0.00%     
  Files         287                   287             
+ Lines       94502                 94503      +1     
======================================================
+ Hits        76460                 76461      +1     
  Misses      18042                 18042             
Files Changed Coverage
/precompiles/utils/src/testing/account.rs 79.00% (+0.21%) 🔼

Coverage generated Mon Feb 12 17:08:03 UTC 2024

@librelois librelois merged commit a96e212 into master Feb 12, 2024
33 of 36 checks passed
@librelois librelois deleted the rq/fix-clippy-issue branch February 12, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants