mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00: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<()> {
|
pub fn run_current_exercise(&mut self) -> Result<()> {
|
||||||
self.show_hint = false;
|
self.show_hint = false;
|
||||||
|
|
||||||
self.writer
|
writeln!(
|
||||||
.write_all(b"\nChecking the exercise, please wait...")?;
|
self.writer,
|
||||||
|
"\nChecking the exercise `{}`. Please wait…",
|
||||||
|
self.app_state.current_exercise().name,
|
||||||
|
)?;
|
||||||
let success = self
|
let success = self
|
||||||
.app_state
|
.app_state
|
||||||
.current_exercise()
|
.current_exercise()
|
||||||
|
|
Loading…
Reference in a new issue