Skip to content

base64ct: MSRV 1.47 and TODO fixes it enables#334

Merged
tarcieri merged 1 commit intomasterfrom
base64ct/msrv-1.47-fixups
Mar 17, 2021
Merged

base64ct: MSRV 1.47 and TODO fixes it enables#334
tarcieri merged 1 commit intomasterfrom
base64ct/msrv-1.47-fixups

Conversation

@tarcieri
Copy link
Member

All of the TODOs except for one are because const fn support for various methods isn't available until 1.47, and the previous MSRV was 1.46 instead.

Therefore, this commit bumps MSRV from 1.46 to 1.47 (which will entail a minor version bump too)


#[inline(always)]
const fn encoded_len_inner(n: usize, padded: bool) -> Option<usize> {
// TODO: replace with `checked_mul` and `map` on stabilization
Copy link
Member Author

Choose a reason for hiding this comment

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

1.47+ lets us use checked_mul, but unfortunately map is not const fn in any release to date

All of the TODOs except for one are because `const fn` support for
various methods isn't available until 1.47, and the previous MSRV was
1.46 instead.

Therefore, this commit bumps MSRV from 1.46 to 1.47 (which will entail
a minor version bump too)
@tarcieri tarcieri force-pushed the base64ct/msrv-1.47-fixups branch from 6eeb9eb to f950eb3 Compare March 17, 2021 14:55
@tarcieri tarcieri merged commit 6753dd1 into master Mar 17, 2021
@tarcieri tarcieri deleted the base64ct/msrv-1.47-fixups branch March 17, 2021 15:04
@tarcieri tarcieri mentioned this pull request Mar 17, 2021
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.

1 participant