diff options
author | Omer Ben-Amram <omerbenamram@gmail.com> | 2019-05-08 11:32:01 +0300 |
---|---|---|
committer | Omer Ben-Amram <omerbenamram@gmail.com> | 2019-05-08 11:32:01 +0300 |
commit | 3bb09c9cdf2de8b9165426142dc584c88893f7fe (patch) | |
tree | d67d37edb8332162d05271d89091dc862bc9ee16 /src/utils.rs | |
parent | da3502fa6e060f998a1e7586e8584a959090a859 (diff) |
more fixes
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils.rs b/src/utils.rs index 7024d63..bea0651 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,8 +1,4 @@ -pub fn to_hex_string(bytes: &Vec<u8>) -> String { +pub fn to_hex_string(bytes: &[u8]) -> String { let strs: Vec<String> = bytes.iter().map(|b| format!("{:02X}", b)).collect(); strs.join("") } - -pub fn print_buffer_as_hex(buffer: &[u8]) { - println!("{}", to_hex_string(&buffer.to_vec())); -} |