We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to impl Drop for InnerOutput, we quickly run into the issue of
impl Drop for InnerOutput
thread '<unnamed>' panicked at 'cannot access stdout during shutdown', src/libcore/option.rs:1008:5
since most usages of Output are in main. The trivial solution is to add output.flush()?; to your fn main, but that's not very ergonomic.
Output
output.flush()?;
fn main
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When trying to
impl Drop for InnerOutput
, we quickly run into the issue ofthread '<unnamed>' panicked at 'cannot access stdout during shutdown', src/libcore/option.rs:1008:5
since most usages of
Output
are in main. The trivial solution is to addoutput.flush()?;
to yourfn main
, but that's not very ergonomic.The text was updated successfully, but these errors were encountered: