We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a95dc4 commit 9258429Copy full SHA for 9258429
src/processing/integrity.rs
@@ -2,7 +2,8 @@
2
3
use crate::config::RtcBuild;
4
use crate::pipelines::Attrs;
5
-use base64::{display::Base64Display, engine::general_purpose::URL_SAFE, Engine};
+use base64::engine::general_purpose::STANDARD;
6
+use base64::{display::Base64Display, Engine};
7
use sha2::{Digest, Sha256, Sha384, Sha512};
8
use std::collections::HashMap;
9
use std::convert::Infallible;
@@ -85,7 +86,7 @@ impl Debug for OutputDigest {
85
86
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
87
f.debug_struct("OutputDigest")
88
.field("integrity", &self.integrity)
- .field("hash", &URL_SAFE.encode(&self.hash))
89
+ .field("hash", &STANDARD.encode(&self.hash))
90
.finish()
91
}
92
@@ -106,7 +107,7 @@ impl OutputDigest {
106
107
IntegrityType::None => None,
108
integrity => Some(format!(
109
"{integrity}-{hash}",
- hash = Base64Display::new(&self.hash, &URL_SAFE)
110
+ hash = Base64Display::new(&self.hash, &STANDARD)
111
)),
112
113
0 commit comments