Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auto merge of #15810 : SimonSapin/rust/base64-from-bytes, r=alexcrichton
The algorithm was already based on bytes internally. Also use byte literals instead of casting u8 to char for matching. [breaking-change] The `InvalidBase64Character` variant of the `FromBase64Error` enum was renamed to `InvalidBase64Byte`, and contains a `u8` instead of a `char`. r? @alexcrichton
- Loading branch information
Showing
1 changed file
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters