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

vsr: make comptime checksum(&.{}) available everywhere #1334

Merged
merged 1 commit into from
Dec 4, 2023

Commits on Nov 30, 2023

  1. vsr: make comptime checksum(&.{}) available everywhere

    I have a bunch of asserts on the empty checksum in free set, and writing
    `assert(checksum = vsr.checksum(&.{}))` makes me hesitate, as that
    involves non-trivial runtime computation. So let's make
    
        comptime vsr.checksum(&.{})
    
    JustWork, so that's a no-brainer for the future.
    matklad committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    047c5ff View commit details
    Browse the repository at this point in the history