Skip to content

Commit a702460

Browse files
author
Mikołaj Świątek
committed
chore(receiver-mock): bump base64 to 0.21.0
1 parent 58b648c commit a702460

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/rust/receiver-mock/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/receiver-mock/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ actix-service = "1"
1313
actix-rt = "2"
1414
anyhow = "1.0.68"
1515
bytes = "1"
16-
base64 = "0.20"
16+
base64 = "0.21"
1717
serde = { version = "1.0.152", features = ["derive"] }
1818
serde_json = "1.0.91"
1919
clap = "4.1.1"

src/rust/receiver-mock/src/router/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub mod v1 {
22
use actix_web::{HttpRequest, HttpResponse, Responder};
3-
use base64;
3+
use base64::{engine::general_purpose as b64, Engine as _};
44
use serde::{Deserialize, Serialize};
55

66
#[derive(Deserialize, Serialize)]
@@ -28,7 +28,7 @@ pub mod v1 {
2828
};
2929

3030
// For now the token is only checked if it can be decoded successfully.
31-
let _decoded = match base64::decode(val) {
31+
let _decoded = match b64::STANDARD.decode(val) {
3232
Ok(v) => v,
3333
Err(_) => {
3434
return HttpResponse::Unauthorized().finish();

0 commit comments

Comments
 (0)