Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use MAX associated const #9196

Merged
merged 2 commits into from
Jun 24, 2021
Merged

Conversation

gilescope
Copy link
Contributor

@gilescope gilescope commented Jun 24, 2021

Redo of #9189 now that I've untangled my git.

As mentioned in the earlier PR u32::max_value() and friends are deprecated in favour of the associated consts u32::MAX. It's less code to read and a little less work for the compiler.

@athei athei added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jun 24, 2021
Copy link
Member

@athei athei left a comment

Choose a reason for hiding this comment

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

LGTM

client/transaction-pool/graph/src/ready.rs Outdated Show resolved Hide resolved
@gilescope gilescope merged commit 76cc00f into paritytech:master Jun 24, 2021
athei pushed a commit that referenced this pull request Jun 25, 2021
* Use MAX associated const
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants