mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 18:13:29 +02:00
Fix errors not being shown after the welcome message
This commit is contained in:
@@ -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 => (),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user