Skip to content

Commit

Permalink
base64 v0.22.1 fixed one of their alphabets, affecting the expected t…
Browse files Browse the repository at this point in the history
…est output (#743)
  • Loading branch information
jonasbb authored May 5, 2024
2 parents eacac80 + 8ba9b0a commit 117549f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion serde_with/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ time_0_3 = ["dep:time_0_3"]

# When adding new optional dependencies, update the documentation in feature-flags.md
[dependencies]
base64 = {version = "0.22.0", optional = true, default-features = false}
base64 = {version = "0.22.1", optional = true, default-features = false}
chrono_0_4 = {package = "chrono", version = "0.4.20", optional = true, default-features = false, features = ["serde"]}
doc-comment = {version = "0.3.3", optional = true}
document-features = {version = "0.2.7", optional = true}
Expand Down
2 changes: 1 addition & 1 deletion serde_with/src/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use crate::prelude::*;
/// };
/// let json = serde_json::json!({
/// "default": "SGVsbG8gV29ybGQ=",
/// "charset_binhex": "5'8VD'mI8epaD'3=",
/// "charset_binhex": "5'9XE'mJ9fpbE'3=",
/// "explicit_padding": "SGVsbG8gV29ybGQ=",
/// "no_padding": "QETqZE6eT07wZEO",
/// });
Expand Down
2 changes: 1 addition & 1 deletion serde_with/tests/base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ fn base64_different_charsets() {

is_equal(
B64BinHex(bytes.to_vec()),
expect![[r##""CDEFGHIJKLMNPQRSTUVXYZ[`ab!\"#$%&'()*+,-0123456789@ABcdehijklmpqr!!==""##]],
expect![[r##""DEFGHIJKLMNPQRSTUVXYZ[`abc!\"#$%&'()*+,-012345689@ABCdefhijklmpqr!!==""##]],
);
}

0 comments on commit 117549f

Please sign in to comment.