From 1cf1701579079eda1f5b5adb54f2db58c3645c1b Mon Sep 17 00:00:00 2001 From: endernon Date: Thu, 2 Jan 2025 12:07:47 +0000 Subject: [PATCH] dont print the string if err --- src/main.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 98e41fd..1505b9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,10 +95,13 @@ fn main() { loaded_shinystats, ) { println!("{}", e); - }; + } + else { + // final string print + println!("{}", encode_string(&out)) + } + - // final string print - println!("{}", encode_string(&out)); } Err(e) => println!("{}", e), }