diff options
| author | mo8it <mo8it@proton.me> | 2024-04-25 02:03:26 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-25 02:03:26 +0200 |
| commit | f92d45fa685e308c009cdf09d341bda41fcf9c52 (patch) | |
| tree | c29ae1974803ea5b7ac1ddd7e2afc6b1de5462a5 /src/run.rs | |
| parent | 67fa01774223b08833c21baeb13bdec9e4a298a0 (diff) | |
Use write macros instead of write_fmt
Diffstat (limited to 'src/run.rs')
| -rw-r--r-- | src/run.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -25,11 +25,12 @@ pub fn run(app_state: &mut AppState) -> Result<()> { ); } - stdout.write_fmt(format_args!( - "{}{}\n", + writeln!( + stdout, + "{}{}", "✓ Successfully ran ".green(), exercise.path.green(), - ))?; + )?; if let Some(solution_path) = app_state.current_solution_path()? { println!( |
