mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
Show the exercise name in the waiting message
This commit is contained in:
parent
0785b24192
commit
4ce8667b9d
1 changed files with 5 additions and 2 deletions
|
@ -51,8 +51,11 @@ impl<'a> WatchState<'a> {
|
|||
pub fn run_current_exercise(&mut self) -> Result<()> {
|
||||
self.show_hint = false;
|
||||
|
||||
self.writer
|
||||
.write_all(b"\nChecking the exercise, please wait...")?;
|
||||
writeln!(
|
||||
self.writer,
|
||||
"\nChecking the exercise `{}`. Please wait…",
|
||||
self.app_state.current_exercise().name,
|
||||
)?;
|
||||
let success = self
|
||||
.app_state
|
||||
.current_exercise()
|
||||
|
|
Loading…
Reference in a new issue