1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-16 10:51:42 +02:00

Show the exercise name in the waiting message

This commit is contained in:
mo8it 2024-08-08 22:48:53 +02:00
parent 0785b24192
commit 4ce8667b9d

View File

@ -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()