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

Don't initialize stdout during io cleanup #119394

Closed
wants to merge 1 commit into from

Commits on Dec 28, 2023

  1. Don't initialize stdout during io cleanup

    Slightly simplify the `std::io::cleanup` code by using `OnceCell::get` instead
    of checking initialization manually with `get_or_init`.
    
    This also has the consequence of not initializing stdout with an empty buffer
    if it hasn't been already, but I believe this is inconsequential given that
    this code only runs at process exit.
    DaniPopes committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    52074cf View commit details
    Browse the repository at this point in the history