mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 08:49:12 -04:00
Fix errors not being shown after the welcome message
This commit is contained in:
parent
693bb708b2
commit
11fc3f1e56
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ fn main() -> Result<()> {
|
||||||
stdout.flush()?;
|
stdout.flush()?;
|
||||||
press_enter_prompt()?;
|
press_enter_prompt()?;
|
||||||
clear_terminal(&mut stdout)?;
|
clear_terminal(&mut stdout)?;
|
||||||
|
// Flush to be able to show errors occuring before printing a newline to stdout.
|
||||||
|
stdout.flush()?;
|
||||||
}
|
}
|
||||||
StateFileStatus::Read => (),
|
StateFileStatus::Read => (),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue