From 1e6fdd7d35be80be20f945bba805eb976d77d363 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 6 Dec 2022 10:28:39 +0100 Subject: [PATCH] [rs] Print extra information on stderr --- rs/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rs/src/main.rs b/rs/src/main.rs index 0e410db..2a5fe17 100644 --- a/rs/src/main.rs +++ b/rs/src/main.rs @@ -61,12 +61,12 @@ fn main() -> io::Result<()> { let day = match Day::from_path(&file) { Some(day) => day, None => { - eprintln!("### can't solve {file:?}"); + eprintln!("### Can't solve {file:?}"); continue; } }; - println!("### Solving day {day}"); + eprintln!("### Solving {file:?}"); let input = fs::read_to_string(file)?; match day { Day::Y2022D01 => y2022::d01::solve(input), @@ -76,7 +76,7 @@ fn main() -> io::Result<()> { Day::Y2022D05 => y2022::d05::solve(input), Day::Y2022D06 => y2022::d06::solve(input), } - println!() + eprintln!() } Ok(())