Skip to content

Commit

Permalink
Fix copy-paste mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dantreiman committed Jun 11, 2024
1 parent d659486 commit 74b4a08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google-apis-common/src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ pub mod standard_base64 {
let s: Cow<str> = Deserialize::deserialize(deserializer)?;
match base64::prelude::BASE64_STANDARD.decode(s.as_ref()) {
Ok(decoded) => Ok(decoded),
Err(first_err) => match general_purpose::URL_SAFE.decode(s.as_ref()) {
Err(first_err) => match base64::prelude::BASE64_URL_SAFE.decode(s.as_ref()) {
Ok(decoded) => Ok(decoded),
Err(_) => Err(serde::de::Error::custom(first_err))
}
Expand Down Expand Up @@ -208,9 +208,9 @@ pub mod urlsafe_base64 {
D: Deserializer<'de>,
{
let s: Cow<str> = Deserialize::deserialize(deserializer)?;
match base64::prelude::URL_SAFE.decode(s.as_ref()) {
match base64::prelude::BASE64_URL_SAFE.decode(s.as_ref()) {
Ok(decoded) => Ok(decoded),
Err(first_err) => match general_purpose::URL_STANDARD.decode(s.as_ref()) {
Err(first_err) => match base64::prelude::BASE64_STANDARD.decode(s.as_ref()) {
Ok(decoded) => Ok(decoded),
Err(_) => Err(serde::de::Error::custom(first_err))
}
Expand Down

0 comments on commit 74b4a08

Please sign in to comment.