convey icon indicating copy to clipboard operation
convey copied to clipboard

Flush correctly

Open killercup opened this issue 7 years ago • 0 comments

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 avatar Dec 31 '18 15:12 killercup