Skip to content

Commit 1703470

Browse files
committed
chore: base64 0.22
1 parent 8d42793 commit 1703470

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ maintenance = { status = "passively-maintained" }
1919
[dependencies]
2020
serde = { version = "^1.0.27", features = [ "derive" ] }
2121
serde_json = "^1.0.9"
22-
base64 = "^0.21.0"
22+
base64 = "^0.22.0"

spec/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ pub mod base64 {
4949
match err {
5050
DecodeError::InvalidByte(..) | DecodeError::InvalidPadding =>
5151
E::invalid_value(Unexpected::Str(str), &"base64"),
52-
DecodeError::InvalidLength =>
53-
E::invalid_length(str.len(), &"valid base64 length"),
52+
DecodeError::InvalidLength(len) =>
53+
E::invalid_length(len, &"valid base64 length"),
5454
DecodeError::InvalidLastSymbol(..) =>
5555
E::invalid_value(Unexpected::Str(str), &"truncated or corrupted base64"),
5656
}

0 commit comments

Comments
 (0)