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

password-hash: make Ident::new fallible; add Ident::new_unwrap #960

Merged
merged 1 commit into from
Mar 9, 2022

Commits on Mar 9, 2022

  1. password-hash: make Ident::new fallible; add Ident::new_unwrap

    Unifies the `const fn` implementation of `Ident::new` and `TryFrom`,
    with the former now able to return a result thanks to const panic.
    
    Since `Debug` isn't const-friendly yet and therefore `Result::unwrap`
    cannot be used in const contexts, adds a `::new_unwrap` function as a
    stopgap. It performs some pattern matching and uses const panic to
    handle the `Err` case.
    tarcieri committed Mar 9, 2022
    Configuration menu
    Copy the full SHA
    06fe35c View commit details
    Browse the repository at this point in the history