-
Notifications
You must be signed in to change notification settings - Fork 660
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
Refactor u32::max_value()
with u32::MAX
#3735
Refactor u32::max_value()
with u32::MAX
#3735
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3735 +/- ##
===========================================
- Coverage 85.08% 82.90% -2.18%
===========================================
Files 298 302 +4
Lines 276674 286537 +9863
===========================================
+ Hits 235397 237543 +2146
- Misses 41277 48994 +7717
... and 33 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM, just a small nit on the changelog.
CHANGELOG.md
Outdated
@@ -21,6 +21,12 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE | |||
runtime error and include details about the error in the `vm_error` field of | |||
the receipt. Fixes issues #3154, #3328. | |||
|
|||
### Changed | |||
|
|||
- All occurrences of the deprecated method `u32::max_value()` (as well as `u64` |
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.
This isn't the type of change that needs to be recorded in the changelog in my opinion (nothing is changing externally).
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.
Yeah, I agree. I will remove that entirely.
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.
LGTM 👌
4c0182a
into
stacks-network:chore/merge-u32-max
Congrats @Acaccia on your first merged Stacks blockchain PR! |
Description
I changed all occurrences of deprecated
u32::max_value()
.While I was at it, I changed the same deprecated method for
u64
andi32
hiding there.Applicable issues
u32::max_value()
withu32::MAX
#3682Additional info (benefits, drawbacks, caveats)
Checklist