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

On Go 1.21, use clear() to clear sets #289

Merged
merged 1 commit into from
Nov 21, 2023

Commits on Nov 21, 2023

  1. With Go 1.21, use clear in set.Clear()

    This addresses the edge cases where a set couldn't be fully cleared,
    and will be more efficient in cases where the loop isn't optimised
    away.
    
    To allow this to be tested in CI, configure tests with Go 1.20 and
    1.21 (since 1.21 has been released, 1.19 has reached EOL).
    
    Signed-off-by: Stephen Kitt <skitt@redhat.com>
    skitt committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    571d869 View commit details
    Browse the repository at this point in the history