Skip to content

Commit

Permalink
MSRV: 1.62
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelAlloy committed Sep 15, 2024
1 parent 73336e6 commit e41481a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ documentation = "https://docs.rs/thumbor"
readme = "README.md"
license = "MIT"
edition = "2021"
rust-version = "1.59"
rust-version = "1.62"
authors = ["SteelAlloy"]
categories = ["web-programming", "multimedia::images"]
keywords = ["client", "thumbor", "crop", "resize", "image"]
Expand Down
4 changes: 2 additions & 2 deletions src/settings/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ impl Settings {
let path = self.build_path(image_uri);

let security = match &self.server.security {
Security::Unsafe => "unsafe",
Security::Unsafe => "unsafe".to_string(),
Security::Hmac(hmac) => {
let mut mac = hmac.clone();
mac.update(path.as_bytes());

let signature = mac.finalize().into_bytes();
&Base64Url::encode_string(&signature)
Base64Url::encode_string(&signature)
}
};

Expand Down

0 comments on commit e41481a

Please sign in to comment.