Skip to content

base64ct: use div_ceil to compute encoded length#2325

Merged
tarcieri merged 1 commit intomasterfrom
base64ct/use-div-ceil-to-compute-encoded-len
May 2, 2026
Merged

base64ct: use div_ceil to compute encoded length#2325
tarcieri merged 1 commit intomasterfrom
base64ct/use-div-ceil-to-compute-encoded-len

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented May 2, 2026

The previous logic was using the idiom for div_ceil but now that our MSRV is sufficiently high we can now ue it directly.

This also addresses the arithmetic_side_effects lint.

Additionally this addresses #2320.

The previous logic was using the idiom for `div_ceil` but now that our
MSRV is sufficiently high we can now ue it directly.

This also addresses the `arithmetic_side_effects` lint.
@tarcieri
Copy link
Copy Markdown
Member Author

tarcieri commented May 2, 2026

Copy link
Copy Markdown

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

Comment thread base64ct/src/encoding.rs
@tarcieri tarcieri merged commit 2529ce4 into master May 2, 2026
53 checks passed
@tarcieri tarcieri deleted the base64ct/use-div-ceil-to-compute-encoded-len branch May 2, 2026 13:31
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.

3 participants