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

Update to use APIs up to MSRV #206

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Conversation

thaliaarchi
Copy link
Contributor

@thaliaarchi thaliaarchi commented Mar 19, 2025

Update to use APIs which are available now that the MSRV is 1.47:

  • {integer}::from_ne_bytes const since 1.44
  • {integer}::trailing_ones stable since 1.46
  • str::strip_prefix stable since 1.45

- {integer}::from_ne_bytes const since 1.44
- {integer}::trailing_ones stable since 1.46
- str::strip_prefix stable since 1.45
@thaliaarchi thaliaarchi force-pushed the msrv-apis branch 2 times, most recently from 5f77a57 to ccc1a13 Compare March 19, 2025 01:19
@thaliaarchi
Copy link
Contributor Author

I originally updated Bytes::peek_n to use const generics, but they were not stable in 1.47.

Copy link
Owner

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Thanks so much!

@seanmonstar seanmonstar merged commit 3614726 into seanmonstar:master Mar 19, 2025
41 checks passed
@thaliaarchi thaliaarchi deleted the msrv-apis branch March 19, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants