summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-25 02:03:26 +0200
committermo8it <mo8it@proton.me>2024-04-25 02:03:26 +0200
commitf92d45fa685e308c009cdf09d341bda41fcf9c52 (patch)
treec29ae1974803ea5b7ac1ddd7e2afc6b1de5462a5 /src/run.rs
parent67fa01774223b08833c21baeb13bdec9e4a298a0 (diff)
Use write macros instead of write_fmt
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/run.rs b/src/run.rs
index 1db8dcb..cbc9ad7 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -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!(