Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Ben-Amram <omerbenamram@gmail.com>2019-05-08 11:32:01 +0300
committerOmer Ben-Amram <omerbenamram@gmail.com>2019-05-08 11:32:01 +0300
commit3bb09c9cdf2de8b9165426142dc584c88893f7fe (patch)
treed67d37edb8332162d05271d89091dc862bc9ee16 /src/utils.rs
parentda3502fa6e060f998a1e7586e8584a959090a859 (diff)
more fixes
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs6
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()));
-}