From 891f05c271e4e1e3a239c58243028374d041f495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 15 Nov 2021 18:41:14 +0100 Subject: [PATCH] pkstrings: convert: change output format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- pkstrings/examples/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkstrings/examples/convert.rs b/pkstrings/examples/convert.rs index 7e02417..cd8fb27 100644 --- a/pkstrings/examples/convert.rs +++ b/pkstrings/examples/convert.rs @@ -30,7 +30,7 @@ fn main() { if args.len() == 2 { // Convert String to PKString and then to Vec let tmp: Vec = PKString::try_from(args[1].as_str()).unwrap().into(); - println!("{:#02x?}", tmp); + println!("{:02x?}", tmp); } else if args.len() == 3 && args[1] == String::from("rev") { // Consure chars 2 by 2 and convert to u8. let mut vec: Vec = vec![];