Skip to content
New issue

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

Flush correctly #34

Open
killercup opened this issue Dec 31, 2018 · 0 comments
Open

Flush correctly #34

killercup opened this issue Dec 31, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@killercup
Copy link
Owner

When trying to impl Drop for InnerOutput, we quickly run into the issue of

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.

@killercup killercup added enhancement New feature or request help wanted Extra attention is needed labels Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant