-
Notifications
You must be signed in to change notification settings - Fork 680
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
Fixes warnings in frame-support-procedural
crate
#4915
Conversation
The CI pipeline was cancelled due to failure one of the required jobs. |
substrate/frame/support/procedural/src/construct_runtime/parse.rs
Outdated
Show resolved
Hide resolved
substrate/frame/support/procedural/src/pallet/parse/validate_unsigned.rs
Outdated
Show resolved
Hide resolved
Some description please to describe what this addresses, as i have no context on the change. |
As the title says, it fixes some unused warnings coming with a newer stable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but I want to further ask you to also semantically double check all the unused fields.
I worry that in the process where we made all of this unused, we have had some regression. Does all the code here, in terms of each macro's abilities, make sense to you?
For example, I see where
being removed from construct_runtime
. I remember this one, and it makes sense. But I cannot validate all the changes here.
Put differently, was everything that was previously unused, unused for a good reason?
Thanks for the review.
Yes, all of these fields previously followed a standard API across all pallet components and it seems that the compiler was not smart enough to realise that some of those are not needed for specific components. With the latest stable, it was able to detect and raise it. |
@paritytech-cicd-pr can we update the rust version in CI now? what is the process/owner for that? |
This PR fixes the unused warnings in `frame-support-procedural` crate, raised by the latest stable rust release.
This PR fixes the unused warnings in `frame-support-procedural` crate, raised by the latest stable rust release.
This PR fixes the unused warnings in
frame-support-procedural
crate, raised by the latest stable rust release.