Use write macros instead of write_fmt

This commit is contained in:
mo8it
2024-04-25 02:03:26 +02:00
parent 67fa017742
commit f92d45fa68
4 changed files with 28 additions and 25 deletions
+4 -3
View File
@@ -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!(