Skip to content

Commit

Permalink
Auto merge of #130738 - bjoernager:const-make-ascii, r=jhpratt
Browse files Browse the repository at this point in the history
Mark `make_ascii_uppercase` and `make_ascii_lowercase` in `[u8]` and `str` as const.

Relevant tracking issue: #130698

This PR extends #130697 and #130713 to the similar methods in byte slices (`[u8]`) and string slices (`str`).

For the `str` methods, this simply requires adding the `const` specifier to the function signatures. The `[u8]` methods, however, require (at least a temporary) reimplementation due to the use of iterators and `for` loops.
  • Loading branch information
bors committed Sep 24, 2024
2 parents 80bd3c7 + 10459f2 commit 0426921
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0426921

Please sign in to comment.