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

Use usize::MAX instead of deprecated usize::max_value #6331

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

Rawk
Copy link
Contributor

@Rawk Rawk commented Sep 17, 2024

Since Rust 1.43.0, usize::max_value() is soft-deprecated, and usize::MAX is available and recommended.

Copy link
Contributor

@ytmimi ytmimi left a comment

Choose a reason for hiding this comment

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

Thanks!

@ytmimi ytmimi merged commit 019578f into rust-lang:master Sep 17, 2024
26 checks passed
@Rawk Rawk deleted the use-usize-max branch September 18, 2024 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants