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 2bcce37 commit 190cad7Copy full SHA for 190cad7
src/metadata.rs
@@ -1,4 +1,4 @@
1
-use crate::{ForcepError, Result, HashBytes};
+use crate::{ForcepError, HashBytes, Result};
2
use std::path;
3
use std::time;
4
@@ -125,7 +125,10 @@ impl Metadata {
125
return Err(make_error("integrity", "expected generic binary subtype"));
126
}
127
if binary.bytes.len() != crate::hash::HASH_LEN {
128
- return Err(make_error("integrity", "integrity must contain HASH_LEN bytes"));
+ return Err(make_error(
129
+ "integrity",
130
+ "integrity must contain HASH_LEN bytes",
131
+ ));
132
133
let mut integrity: HashBytes = [0u8; crate::hash::HASH_LEN];
134
integrity.copy_from_slice(binary.bytes);
0 commit comments