mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-11-08 09:09:17 +01:00
Use a green color on successful run
This commit is contained in:
parent
d0fcd8ae8a
commit
ee7d976283
@ -1,4 +1,5 @@
|
||||
use anyhow::{bail, Result};
|
||||
use crossterm::style::Stylize;
|
||||
use std::io::{stdout, Write};
|
||||
|
||||
use crate::exercise::Exercise;
|
||||
@ -21,8 +22,7 @@ pub fn run(exercise: &Exercise) -> Result<()> {
|
||||
bail!("Ran {exercise} with errors");
|
||||
}
|
||||
|
||||
// TODO: Color
|
||||
println!("Successfully ran {exercise}");
|
||||
println!("{}", "✓ Successfully ran {exercise}".green());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user