From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Mon, 25 Jul 2022 11:28:44 +0200
Subject: Fix stdout/err output

Data should go to stdout, errors and other information to stderr.

Closes: #1
---
 src/bin/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/main.rs b/src/bin/main.rs
index 2e16bc4..176c021 100644
--- a/src/bin/main.rs
+++ b/src/bin/main.rs
@@ -45,7 +45,7 @@ fn run(config: Config) -> Result<String, Box<dyn Error>> {
     
     let start = std::time::Instant::now();
 
-    println!("Reading from file: \"{}\" ...",&config.filename);
+    eprintln!("Reading from file: \"{}\" ...",&config.filename);
 
     let mut total = 0;
 
@@ -64,7 +64,7 @@ fn run(config: Config) -> Result<String, Box<dyn Error>> {
 
     let process_stats = get_process_stats();
 
-    eprintln!("{}", stats);
+    println!("{}", stats);
 
     let total = start.elapsed();
 
@@ -215,4 +215,4 @@ mod tests {
 
         assert_eq!(expected, result);    
     }
-}
\ No newline at end of file
+}
