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 f9435a6 commit 8c15092Copy full SHA for 8c15092
src/hex_utils.rs
@@ -24,7 +24,7 @@ pub fn to_vec(hex: &str) -> Option<Vec<u8>> {
24
25
#[inline]
26
pub fn to_string(value: &[u8]) -> String {
27
- let mut res = String::with_capacity(value.len());
+ let mut res = String::with_capacity(2 * value.len());
28
for v in value {
29
write!(&mut res, "{:02x}", v).expect("Unable to write");
30
}
0 commit comments