Skip to content

Commit

Permalink
fix(deps): bump base64 from 0.10.1 to 0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kade-robertson authored and zkat committed Feb 9, 2023
1 parent a01e852 commit bf4ec57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readme = "README.md"

[dependencies]
sha2 = "0.10"
base64 = "0.10.1"
base64 = "0.21"
digest = "0.10"
sha-1 = "0.10"
hex = "0.4"
Expand Down
4 changes: 3 additions & 1 deletion src/integrity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use crate::errors::Error;
use crate::hash::Hash;
use crate::opts::IntegrityOpts;

use base64::Engine as _;

#[cfg(feature = "serde")]
use serde::de::{self, Deserialize, Deserializer, Visitor};
#[cfg(feature = "serde")]
Expand Down Expand Up @@ -187,7 +189,7 @@ impl Integrity {
let hash = self.hashes.get(0).unwrap();
(
hash.algorithm,
hex::encode(base64::decode(&hash.digest).unwrap()),
hex::encode(base64::prelude::BASE64_STANDARD.encode(&hash.digest)),
)
}

Expand Down

0 comments on commit bf4ec57

Please sign in to comment.