-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
extract_requirement_version
return an Option
Rust 1.83 added support for `Option::expect` in `const` contexts: https://blog.rust-lang.org/2024/11/28/Rust-1.83.0.html This means we can now return an `Option` from `extract_requirement_version` instead of panicing within it, which makes it easier to test the function, and avoids the need to explain that the panic inside the function was actually safe.
- Loading branch information
Showing
2 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters