Skip to content

Commit 9cd900c

Browse files
committed
Fix sha256 printing code
1 parent edb81c1 commit 9cd900c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn to_hex(sha: &Sha256) -> String {
55
let bytes = sha.as_slice();
66
let mut result = String::new();
77
for byte in bytes {
8-
result.push_str(&format!("{byte:0<2x}"));
8+
result.push_str(&format!("{byte:0>2x}"));
99
}
1010
result
1111
}

0 commit comments

Comments
 (0)