-
Notifications
You must be signed in to change notification settings - Fork 30
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
Replace uses of T::max_value() with T::MAX #156
Comments
@brycx
|
@u5sur, you're more than welcome! And yes, that's the immediate impression I got as well. So, just looking for the maximum should suffice. Edit: Just a heads-up, |
@brycx |
Indeed, this requires 1.43.0, as I've mentioned in the description. This is no problem at all. If you want, you can change the MSRV to 1.43.0, in rust:
- stable
- beta
- nightly
- 1.41.0 # MSRV |
The max value that a primitive type can represent has been made accessible as an associated constant. The
max_value()
/min_value()
functions are soft-deprecated.should change to
If
T::min_value()
is used anywhere, this should be replaced withT::MIN
.Bumps MSRV to 1.43.0.
The text was updated successfully, but these errors were encountered: