Added floating point formatting
+ Supports single and double precession formatting + Added Error handling from the formatting functions
This commit is contained in:
3 files changed
+107
-22
No files matched your search
+4
-1
@@ -33,5 +33,8 @@ fn main() {
|
||||
|
||||
let data = parse_bytes_from_input_arg(args.data).unwrap();
|
||||
|
||||
println!("{}", format.format_data(&data));
|
||||
match format.format_data(&data) {
|
||||
Ok(data_str) => println!("{}", data_str),
|
||||
Err(e) => println!("Unable to format data: {}", e)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user