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 10:52:39 +0300
committerOmer Ben-Amram <omerbenamram@gmail.com>2019-05-08 10:52:39 +0300
commitda3502fa6e060f998a1e7586e8584a959090a859 (patch)
tree5d0f471564e22cd68113e63812fc4575d7e0ff78 /src/utils.rs
parent384e2d5037bdb9141e213587dc146ab15903c42a (diff)
formatting, update deps
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 7bda5c9..7024d63 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -1,10 +1,8 @@
pub fn to_hex_string(bytes: &Vec<u8>) -> String {
- let strs: Vec<String> = bytes.iter()
- .map(|b| format!("{:02X}", b))
- .collect();
+ 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()));
+ println!("{}", to_hex_string(&buffer.to_vec()));
}